You are here

function Notifications_Scheduler_Event::create_template in Notifications 7

Create message template to build this event as text

The template can be configured per action

File

notifications_scheduler/notifications_scheduler.inc, line 81
Drupal Notifications Framework - Default class file

Class

Notifications_Scheduler_Event
Notifications Schedule Event class

Code

function create_template() {
  $template_name = $this
    ->get_action_context('template');

  // If no template set, we go for the default for this event type
  $template_name = $template_name ? $template_name : $this
    ->get_type('template', 'default');
  return notifications_template($template_name)
    ->set_event($this);
}