You are here

public function Notifications_Scheduler_Event::get_action_context in Notifications 7

Get property from action context

5 calls to Notifications_Scheduler_Event::get_action_context()
Notifications_Scheduler_Event::create_template in notifications_scheduler/notifications_scheduler.inc
Create message template to build this event as text
Notifications_Scheduler_Latest_Posts::load_content in notifications_scheduler/notifications_scheduler.inc
Load nodes created and published or updated since latest time. It doesn't check node access
Notifications_Scheduler_Latest_Posts::prepare_context in notifications_scheduler/notifications_scheduler.inc
Set action parameters, get field mapping from context
Notifications_Scheduler_Latest_Posts::subscription_types in notifications_scheduler/notifications_scheduler.inc
Get subscription types triggered by this event
Notifications_Scheduler_New_Posts::load_content in notifications_scheduler/notifications_scheduler.inc
Load nodes created and published since last time this was executed. It doesn't check node access

File

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

Class

Notifications_Scheduler_Event
Notifications Schedule Event class

Code

public function get_action_context($name = NULL, $default = NULL) {
  if ($name) {
    return isset($this->action_context[$name]) ? $this->action_context[$name] : $default;
  }
  else {
    return $this->action_context;
  }
}