You are here

function services_client_cron_queue_info in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client.module \services_client_cron_queue_info()

Implementation of hook_cron_queue_info().

File

./services_client.module, line 210
Services client module allows to push different types of objects on different types of events such as node_save, user_save to remote masters.

Code

function services_client_cron_queue_info() {
  if (variable_get('services_client_use_queue', FALSE) && variable_get('services_client_process_queue_cron', FALSE)) {
    $queues['services_client_sync'] = array(
      'worker callback' => 'services_client_queue_sync',
      'time' => 120,
    );
    return $queues;
  }
  else {
    return array();
  }
}