You are here

function acquia_search_cron in Acquia Connector 7

Implementation of hook_cron().

File

acquia_search/acquia_search.module, line 116
Integration between Acquia Drupal and Acquia's hosted solr search service.

Code

function acquia_search_cron() {

  // Cache the cersion in a variable so we can send it at not extra cost.
  $version = variable_get('acquia_search_version', '7.x');
  $info = system_get_info('module', 'acquia_search');

  // Send the version, or at least the core compatibility as a fallback.
  $new_version = isset($info['version']) ? (string) $info['version'] : (string) $info['core'];
  if ($version != $new_version) {
    variable_set('acquia_search_version', $new_version);
  }
}