Commit ec59442e authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Allowed userlist elements to specify 'filter' as true or false. If false,

the select dropdown for choosing groups, communities etc. is not used for
the element.
parent d8816043
......@@ -58,6 +58,9 @@ function form_render_userlist($element, Form $form) {
}
$smarty->assign('name', $element['name']);
if (!empty($element['filter'])) {
$smarty->assign('filter', true);
}
return $smarty->fetch('form/userlist.tpl');
}
......@@ -92,4 +95,12 @@ function form_is_empty_userlist($value, $element) {
return true;
}
function form_render_userlist_set_attributes($element) {
// By default, use the filter select box
if (!isset($element['filter'])) {
$element['filter'] = true;
}
return $element;
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment