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;
  }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Issue summary: View changes
Status: Active » Fixed
FileSize
679 bytes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.