You are here

function globallink_cron in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 8.2 globallink.module \globallink_cron()
  2. 8 globallink.module \globallink_cron()
  3. 7.7 globallink.module \globallink_cron()
  4. 7.6 globallink.module \globallink_cron()

Implements hook_cron().

File

./globallink.module, line 1289
GlobalLink translation module.

Code

function globallink_cron() {

  // Only run this if settings are set to Drupal Cron.
  if (!variable_get('globallink_cron_type', 0)) {
    return;
  }

  // Create Drupal queue item.
  $queue = DrupalQueue::get('auto_receive');
  $queue
    ->createItem('hook_cron');
}