function user_import_profile_load in User Import 6.2
Same name and namespace in other branches
- 8 user_import.module \user_import_profile_load()
- 5.2 user_import.module \user_import_profile_load()
- 5 user_import.module \user_import_profile_load()
- 6.4 user_import.module \user_import_profile_load()
- 7 user_import.module \user_import_profile_load()
- 7.2 user_import.module \user_import_profile_load()
File
- ./
user_import.module, line 445 - Import or update users with data from a comma separated file (csv).
Code
function user_import_profile_load($user) {
$result = db_query('SELECT f.name, f.type, f.fid, v.value FROM {profile_fields} f INNER JOIN {profile_values} v ON f.fid = v.fid WHERE uid = %d', $user->uid);
while ($field = db_fetch_object($result)) {
if (empty($profile[$field->fid])) {
$profile[$field->fid] = _profile_field_serialize($field->type) ? unserialize($field->value) : $field->value;
}
}
return $profile;
}