function advuser_profile_fields in Advanced User 7.3
Same name and namespace in other branches
- 5.2 advuser.module \advuser_profile_fields()
- 6.3 advuser.module \advuser_profile_fields()
- 6.2 advuser.module \advuser_profile_fields()
Selected Profile Fields
Return value
array
3 calls to advuser_profile_fields()
- advuser_admin_account in forms/
advuser_admin_account.inc - Provide the list of filtered users.
- advuser_build_query in ./
advuser.module - Get the sql query string.
- advuser_filters in ./
advuser.module - List advuser administration filters that can be applied.
1 string reference to 'advuser_profile_fields'
- advuser_settings in forms/
advuser_settings.inc - @file
File
- ./
advuser.module, line 415 - Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.
Code
function advuser_profile_fields() {
static $ret = array();
if (!count($ret) && module_exists('profile')) {
$fields = variable_get('advuser_profile_fields', NULL);
if (is_array($fields)) {
foreach ($fields as $fid => $value) {
if ($value) {
$result = db_select('profile_field', 'pf')
->fields('pf')
->condition('fid', $fid, '=')
->execute();
foreach ($result as $ret) {
}
}
}
}
}
return $ret;
}