You are here

public function Notifications_Message_Template::set_event in Notifications 7

Set notifications event

1 call to Notifications_Message_Template::set_event()
Notifications_Content_Node_View::set_event in notifications_content/notifications_content.inc
Set event and view name
1 method overrides Notifications_Message_Template::set_event()
Notifications_Content_Node_View::set_event in notifications_content/notifications_content.inc
Set event and view name

File

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

Class

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

Code

public function set_event($event) {
  $this->content = $event
    ->get_content();
  $this->objects = $event
    ->get_objects();
  $this->objects['notifications_event'] = $event;
  return $this;
}