function trigger_cron in Drupal 6
Same name and namespace in other branches
- 7 modules/trigger/trigger.module \trigger_cron()
Implementation of hook_cron().
File
- modules/
trigger/ trigger.module, line 315 - Enables functions to be stored and executed at a later time when triggered by other modules or by one of Drupal's core API hooks.
Code
function trigger_cron() {
$aids = _trigger_get_hook_aids('cron', 'run');
$context = array(
'hook' => 'cron',
'op' => 'run',
);
// Cron does not act on any specific object.
$object = NULL;
actions_do(array_keys($aids), $object, $context);
}