You are here

function Notifications_Message_Template::add_event in Notifications 7

Add event object and its corresponding template

File

./notifications.template.inc, line 47
Drupal Notifications Framework - Templates

Class

Notifications_Message_Template
Message template. This should be able to produce a full message by itself

Code

function add_event($event) {
  $this->events[$event->eid] = $event;
  $this
    ->add_template('event:' . $event->eid, $event
    ->get_template());
}