You are here

function Notifications_Scheduler_Event::prepare in Notifications 7

Prepare this event to be triggered

File

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

Class

Notifications_Scheduler_Event
Notifications Schedule Event class

Code

function prepare() {
  parent::prepare();

  // Load the content now, later it may be different
  $this->content = $this
    ->load_content();

  // Build message template so it can be reused later
  if ($this->content && $this
    ->get_template()) {
    $this->dispatch = TRUE;
  }
  else {

    // If something failed we don't even store this event
    $this->dispatch = FALSE;
  }
  return $this;
}