function profile_get_fields in User Import 7.2
Same name and namespace in other branches
- 8 supported/profile.inc \profile_get_fields()
- 5 supported/profile.inc \profile_get_fields()
- 6.4 supported/profile.inc \profile_get_fields()
- 6.2 supported/profile.inc \profile_get_fields()
- 7 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;
}