You are here

function notifications_ui_type_enabled in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications_ui/notifications_ui.module \notifications_ui_type_enabled()

Check whether this subscription type is enabled / disabled for the UI

Parameters

$type: Subscription type

5 calls to notifications_ui_type_enabled()
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()
notifications_ui_page_options in notifications_ui/notifications_ui.module
Get subscription options for current page/user and a display type

File

notifications_ui/notifications_ui.module, line 122
User Interface for subscriptions modules

Code

function notifications_ui_type_enabled($type) {
  $settings = variable_get('notifications_ui_types', array(
    'thread',
    'nodetype',
    'author',
  ));
  return notifications_subscription_type_enabled($type) && in_array($type, $settings, TRUE);
}