Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function trigger_cron

Implements hook_cron().

File

modules/trigger/trigger.module, line 447

Code

function trigger_cron () {
 $aids = trigger_get_assigned_actions ('cron');
 $context = array(
 'group' => 'cron',
 'hook' => 'cron',
 );
 // Cron does not act on any specific object.
 $object = NULL;
 actions_do (array_keys ($aids), $object, $context);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.