function notifications_scheduler_admin_action_build in Notifications 7
Exedute action from admin form. Instead of triggering the event we attempt a batch execution;
1 call to notifications_scheduler_admin_action_build()
- notifications_scheduler_admin_send_form in notifications_scheduler/
notifications_scheduler.admin.inc - Preview form to send notifications
File
- notifications_scheduler/
notifications_scheduler.admin.inc, line 175
Code
function notifications_scheduler_admin_action_build($action) {
$object = NULL;
// It should be a job scheduler object
$context = !empty($action['parameters']) ? unserialize($action['parameters']) : array();
return notifications_event($action['event_key'])
->set_action($object, $context)
->prepare();
}