function advuser_profile_fields in Advanced User 6.3
Same name and namespace in other branches
- 5.2 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
4 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.
 - theme_advuser_admin_account in forms/
advuser_admin_account.inc  - Theme user administration overview.
 
2 string references to 'advuser_profile_fields'
- advuser_settings in forms/
advuser_settings.inc  - @file
 - theme_advuser_admin_account in forms/
advuser_admin_account.inc  - Theme user administration overview.
 
File
- ./
advuser.module, line 469  - 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;
}