function notifications_ui_user in Notifications 6.4
Same name and namespace in other branches
- 6 notifications_ui/notifications_ui.module \notifications_ui_user()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_user()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_user()
- 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',
)),
);
}
}
}