function notifications_ui_subscription_type in Notifications 6.2
Same name and namespace in other branches
- 6 notifications_ui/notifications_ui.module \notifications_ui_subscription_type()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_subscription_type()
Check whether this subscription type is enabled / disabled
@todo Maybe move settings into a table instead a variable
Parameters
$type: Subscription type
$option: Option name. None to get all settings
5 calls to notifications_ui_subscription_type()
- 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_allowed_types in notifications_ui/
notifications_ui.module - Get list of allowed subscriptions types
- notifications_ui_form_alter in notifications_ui/
notifications_ui.module - Implementation of hook_form_alter()
File
- notifications_ui/
notifications_ui.module, line 532 - User Interface for subscriptions modules
Code
function notifications_ui_subscription_type($type) {
$settings = variable_get('notifications_ui_types', array());
return in_array($type, $settings, TRUE);
}