You are here

function profile_get_fields in User Import 5

Same name and namespace in other branches
  1. 8 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 106

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_fields}");
    while ($row = db_fetch_object($results)) {
      $fields[] = $row;
    }
  }
  return $fields;
}