You are here

function notifications_content_author_uid in Notifications 6

Same name and namespace in other branches
  1. 6.2 notifications_content/notifications_content.module \notifications_content_author_uid()
  2. 6.3 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 387
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.'));
  }
}