function _advuser_filter_ui_type in Advanced User 6.3
Same name and namespace in other branches
- 7.3 forms/advuser_filter_ui.inc \_advuser_filter_ui_type()
Determine the type of field based on the field name.
Parameters
$field:
Return value
field type.
1 call to _advuser_filter_ui_type()
- _advuser_filter_ui_1 in forms/
advuser_filter_ui.inc - The operator and data value entry
File
- forms/
advuser_filter_ui.inc, line 342 - This provides a multipart form for the filtering options.
Code
function _advuser_filter_ui_type($field) {
switch ($field) {
case 'user_roles':
case 'permission':
case 'status':
$ret = 'select';
break;
// Yea, these are date fields but we want textfield input so that we can
// use phrases like 3 weeks ago.
case 'created':
case 'last_access':
$ret = 'textfield';
break;
default:
$ret = 'textfield';
break;
}
return $ret;
}