public static function Notifications_Event::build_type in Notifications 7
Build Event from type and action
1 call to Notifications_Event::build_type()
- notifications_event in ./
notifications.module - Create event object of given type
File
- ./
notifications.event.inc, line 88 - Drupal Notifications Framework - Default class file
Class
- Notifications_Event
- Notifications Event class
Code
public static function build_type($type, $action = NULL) {
$class = self::type_info($type, 'class', 'Notifications_Event');
$action = $action ? $action : self::type_info($type, 'action', 'default');
return new $class(array(
'type' => $type,
'action' => $action,
));
}