Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The README has this example, but the API docs don't:
function example_cron_job_scheduler_info() {
$schedulers = array();
$schedulers['example_unpublish'] = array(
'worker callback' => 'example_unpublish_nodes',
'jobs' => array(
array('type' => 'story', 'id' => 12, 'period' => 3600, 'periodic' => TRUE),
)
);
return $schedulers;
}
Comment | File | Size | Author |
---|---|---|---|
#1 | 2113247.job_scheduler.hook_cron_job_scheduler_info-jobs.patch | 679 bytes | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commented