function _acquia_search_set_version in Acquia Connector 7.3
Same name and namespace in other branches
- 8 acquia_search/acquia_search.install \_acquia_search_set_version()
- 7.2 acquia_search/acquia_search.module \_acquia_search_set_version()
Helper function to cache the Acquia Search version.
2 calls to _acquia_search_set_version()
- acquia_search_enable in acquia_search/
acquia_search.install - Implements hook_enable().
- acquia_search_requirements in acquia_search/
acquia_search.install - Implements hook_requirements().
File
- acquia_search/
acquia_search.module, line 405 - Integration between Acquia Drupal and Acquia's hosted solr search service.
Code
function _acquia_search_set_version() {
// Cache the version 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);
}
}