function notifications_content_author_uid in Notifications 6.3
Same name and namespace in other branches
- 6 notifications_content/notifications_content.module \notifications_content_author_uid()
- 6.2 notifications_content/notifications_content.module \notifications_content_author_uid()
1 string reference to 'notifications_content_author_uid'
- notifications_content_notifications in notifications_content/
notifications_content.module - Implementation of hook_notifications()
File
- notifications_content/
notifications_content.module, line 422 - Subscriptions to content events
Code
function notifications_content_author_uid($name, $field = NULL) {
if ($account = user_load(array(
'name' => $name,
))) {
return $account->uid;
}
elseif ($field) {
form_set_error($field, t('User name not found.'));
}
}