function notifications_ui_user in Notifications 7
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.module \notifications_ui_user()
- 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()
Implementation of hook_user().
File
- notifications_ui/
notifications_ui.module, line 380 - 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_option_subscribe_links('user', $account))) {
$account->content['summary']['notifications'] = array(
'#type' => 'user_profile_item',
'#title' => t('Subscriptions'),
'#value' => theme('links', $links, array(
'class' => 'item-list',
)),
);
}
}
}