function notifications_event_enabled in Notifications 6.3
Same name and namespace in other branches
- 6.4 notifications.module \notifications_event_enabled()
- 6.2 notifications.module \notifications_event_enabled()
- 7 notifications.module \notifications_event_enabled()
Check whether we have enabled events of this type
2 calls to notifications_event_enabled()
- notifications_content_form_alter in notifications_content/
notifications_content.module - Implementation of hook_form_alter().
- notifications_event in ./
notifications.module - Process subscriptions events
File
- ./
notifications.module, line 429 - Notifications module
Code
function notifications_event_enabled($type, $action) {
$info = variable_get('notifications_events', array());
// Defaults to TRUE if not set
return (bool) (!isset($info[$type][$action]) || $info[$type][$action]);
}