You are here

function notifications_event_enabled_types in Notifications 7

Get event types. Invoking this function will also load the event API

Was: notifications_event_type_enabled

File

./notifications.module, line 1045
Notifications module

Code

function notifications_event_enabled_types($typekey = NULL, $property = NULL, $default = NULL) {
  $enabled =& drupal_static(__FUNCTION__);
  if (!isset($enabled)) {
    $enabled = array();
    foreach (notifications_event_type() as $type => $event_type) {
      if (empty($event['disabled']) && notifications_event_enabled($type)) {
        $enabled[$type] = $event_type;
      }
    }
  }
  return messaging_array_info($info, $typekey, $property, $default);
}