function notifications_ui_access_page in Notifications 7
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.module \notifications_ui_access_page()
- 6 notifications_ui/notifications_ui.module \notifications_ui_access_page()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_access_page()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_access_page()
Menu access callback: account pages
1 call to notifications_ui_access_page()
- NotificationsContentTests::testNotificationsUserPages in tests/
notifications_content.test - Check all user pages before and after enabling permissions
File
- notifications_ui/
notifications_ui.module, line 77 - User Interface for subscriptions modules
Code
function notifications_ui_access_page($type, $account) {
// Global user permissions
if (notifications_access_user($account) && notifications_ui_type_enabled($type) && notifications_ui_user_options('page')) {
// Check specifics for this subscription type
return notifications_subscription($type)
->user_access($account);
}
}