function globallink_cron in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 8.2 globallink.module \globallink_cron()
- 8 globallink.module \globallink_cron()
- 7.7 globallink.module \globallink_cron()
- 7.5 globallink.module \globallink_cron()
Implements hook_cron().
File
- ./
globallink.module, line 1379 - 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');
}