function advuser_profile_fields in Advanced User 5.2
Same name and namespace in other branches
- 6.3 advuser.module \advuser_profile_fields()
- 6.2 advuser.module \advuser_profile_fields()
- 7.3 advuser.module \advuser_profile_fields()
Selected Profile Fields
Return value
array
3 calls to advuser_profile_fields()
- advuser_admin_account in ./
advuser.module - advuser_filters in ./
advuser_filters.inc - List advuser administration filters that can be applied.
- theme_advuser_admin_account in ./
advuser.module - Theme user administration overview.
3 string references to 'advuser_profile_fields'
- advuser_install in ./
advuser.install - advuser_settings in ./
advuser.module - advuser settings page
- theme_advuser_admin_account in ./
advuser.module - Theme user administration overview.
File
- ./
advuser.module, line 666 - 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) {
$ret[] = db_fetch_object(db_query('SELECT * FROM {profile_fields} WHERE fid = %d', $fid));
}
}
}
}
return $ret;
}