function flickr_user_load in Flickr 7
Implements hook_user_load(). Adds the Flickr variables to the user object.
File
- ./
flickr.module, line 255 - The Flickr module.
Code
function flickr_user_load($users) {
$result = db_query('SELECT * FROM {flickr_users} WHERE uid IN (:uids)', array(
':uids' => array_keys($users),
));
foreach ($result as $record) {
$users[$record->uid]->flickr['identifier'] = $record->identifier;
$users[$record->uid]->flickr['nsid'] = $record->nsid;
}
}