function notifications_ui_user_options in Notifications 6.2
Same name and namespace in other branches
- 6.4 notifications_ui/notifications_ui.module \notifications_ui_user_options()
- 6 notifications_ui/notifications_ui.module \notifications_ui_user_options()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_user_options()
- 7 notifications_ui/notifications_ui.module \notifications_ui_user_options()
Check enabled option / Get options for user account pages
Parameters
$type: Option type = 'page', 'create' Null to get all of them
5 calls to notifications_ui_user_options()
- NotificationsContentTests::testNotificationsUserPages in tests/
notifications_content.test - Check all user pages before and after enabling permissions
- notifications_ui_access_page in notifications_ui/
notifications_ui.module - Menu access callback: account pages
- notifications_ui_access_user_add in notifications_ui/
notifications_ui.module - Menu access callback: add subscription
- notifications_ui_form_alter in notifications_ui/
notifications_ui.module - Implementation of hook_form_alter()
- notifications_ui_settings_form in notifications_ui/
notifications_ui.pages.inc - Site-wide settings form.
File
- notifications_ui/
notifications_ui.module, line 578 - User Interface for subscriptions modules
Code
function notifications_ui_user_options($type = NULL) {
$settings = variable_get('notifications_ui_user', array(
'page',
'create',
));
if ($type) {
return in_array($type, $settings, TRUE);
}
else {
return $settings;
}
}