You are here

function profile_get_fields in User Import 6.4

Same name and namespace in other branches
  1. 8 supported/profile.inc \profile_get_fields()
  2. 5 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 110

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;
}