You are here

function Notifications_Event::get_type in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.event.inc \Notifications_Event::get_type()

Get event type information

File

includes/notifications_event.class.inc, line 74
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Message destination class

Code

function get_type($property = NULL) {
  if ($info = notifications_event_types($this->typekey)) {
    if ($property) {
      return isset($info[$property]) ? $info[$property] : NULL;
    }
    else {
      return $info;
    }
  }
}