You are here

function notifications_ui_type_enabled in Notifications 7

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

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

Parameters

$type: Subscription type

2 calls to notifications_ui_type_enabled()
notifications_ui_access_page in notifications_ui/notifications_ui.module
Menu access callback: account pages
notifications_ui_form_alter in notifications_ui/notifications_ui.module
Implementation of hook_form_alter()

File

notifications_ui/notifications_ui.module, line 106
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);
}