function notifications_ui_user_access in Notifications 7
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.module \notifications_ui_user_access()
Check user access to notifications_ui
2 calls to notifications_ui_user_access()
- notifications_option_subscribe_links in notifications_ui/
notifications_ui.module - Build subscription options as an array of links
- notifications_ui_link in notifications_ui/
notifications_ui.module - Implementation of hook_link()
File
- notifications_ui/
notifications_ui.module, line 338 - User Interface for subscriptions modules
Code
function notifications_ui_user_access($account = NULL) {
$account = $account ? $account : $GLOBALS['user'];
return user_access('create subscriptions', $account);
}