You are here

function notifications_ui_user in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_ui/notifications_ui.module \notifications_ui_user()
  2. 6.2 notifications_ui/notifications_ui.module \notifications_ui_user()
  3. 6.3 notifications_ui/notifications_ui.module \notifications_ui_user()
  4. 7 notifications_ui/notifications_ui.module \notifications_ui_user()

Implementation of hook_user().

1 string reference to 'notifications_ui_user'
notifications_ui_update_6002 in notifications_ui/notifications_ui.install
Change some variables for uniform notifications_ui_[object]_options

File

notifications_ui/notifications_ui.module, line 448
User Interface for subscriptions modules

Code

function notifications_ui_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'view') {

    // Add plain links if enabled
    if (notifications_ui_display_options('account', 'links') && ($links = notifications_ui_subscribe_links('user', $account))) {
      $account->content['summary']['notifications'] = array(
        '#type' => 'user_profile_item',
        '#title' => t('Subscriptions'),
        '#value' => theme('links', $links, array(
          'class' => 'item-list',
        )),
      );
    }
  }
}