You are here

function recommender_cron in Recommender API 7.6

Same name and namespace in other branches
  1. 6.3 recommender.module \recommender_cron()
  2. 6.2 recommender.module \recommender_cron()
  3. 7.3 recommender.module \recommender_cron()
  4. 7.4 recommender.module \recommender_cron()
  5. 7.5 recommender.module \recommender_cron()

Implements hook_cron().

File

./recommender.module, line 388

Code

function recommender_cron() {
  if (variable_get('recommender_cron_strategy', 'drupal') == 'drupal') {
    $queue = DrupalQueue::get('recommender_cron_process');
    $queue
      ->createItem(time());
  }
}