You are here

function profile_get_fields in User Import 8

Same name and namespace in other branches
  1. 5 supported/profile.inc \profile_get_fields()
  2. 6.4 supported/profile.inc \profile_get_fields()
  3. 6.2 supported/profile.inc \profile_get_fields()
  4. 7 supported/profile.inc \profile_get_fields()
  5. 7.2 supported/profile.inc \profile_get_fields()
1 call to profile_get_fields()
profile_user_import_after_save in supported/profile.inc
Implementation of hook_user_import_after_save().

File

supported/profile.inc, line 143

Code

function profile_get_fields() {
  static $fields = array();

  // Avoid making more than one database call for profile info.
  if (empty($fields)) {
    $results = db_query('SELECT * FROM {profile_field}');
    foreach ($results as $row) {
      $fields[] = $row;
    }
  }
  return $fields;
}