You are here

function notifications_event_template in Notifications 6.3

Get template object for event

File

./notifications.cron.inc, line 588

Code

function notifications_event_template($event, $params, $module = 'notifications', $send_method = NULL, $language = NULL) {
  $engine = notifications_template_engine();
  if ($template = $engine
    ->get_event_template($event, $module, $send_method, $language)) {

    // Set some other template properties
    $template->event = $event;
    return $template;
  }
}