You are here

function notifications_content_author_name in Notifications 6.2

Same name and namespace in other branches
  1. 6 notifications_content/notifications_content.module \notifications_content_author_name()
  2. 6.3 notifications_content/notifications_content.module \notifications_content_author_name()

Field name callback, author uid to user name

1 call to notifications_content_author_name()
notifications_content_author_name_callback in notifications_content/notifications_content.module
Wrapper for author autocomplete callback.
1 string reference to 'notifications_content_author_name'
notifications_content_notifications in notifications_content/notifications_content.module
Implementation of hook_notifications()

File

notifications_content/notifications_content.module, line 420
Subscriptions to content events

Code

function notifications_content_author_name($uid, $html = FALSE) {
  if ($account = user_load($uid)) {
    return $html ? theme('username', $account) : check_plain($account->name);
  }
}