You are here

function trigger_cron in Drupal 7

Same name and namespace in other branches
  1. 6 modules/trigger/trigger.module \trigger_cron()

Implements hook_cron().

File

modules/trigger/trigger.module, line 447
Enables functions to be stored and executed at a later time.

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);
}