function avatar_selection_user_insert in Avatar Selection 7
Implements hook_user_insert().
File
- ./
avatar_selection.module, line 408 - The Avatar Selection module allows the user to pick an avatar image from a list already loaded by an administrative user, and to the administrator to disable uploading other avatar files by the user.
Code
function avatar_selection_user_insert(&$edit, $account, $category) {
if (!empty($edit['select_avatar'])) {
$usage = new stdClass();
$usage->uid = $account->uid;
$usage->fid = $edit['select_avatar'];
drupal_write_record('avatar_selection_usage', $usage);
}
}