function spam_user_profile_update in Spam 5.3
Be sure we're scanning the latest profile data.
1 call to spam_user_profile_update()
- spam_user in modules/
spam_user.inc
File
- modules/
spam_user.inc, line 220
Code
function spam_user_profile_update($user) {
$profile = array();
$result = db_query('SELECT fid, value FROM {profile_values} WHERE uid = %d', $user->uid);
while ($value = db_fetch_object($result)) {
$name = db_result(db_query('SELECT name FROM {profile_fields} WHERE fid = %d', $value->fid));
$user->{$name} = $value->value;
}
return $user;
}