You are here

function _acquia_lift_set_version in Acquia Lift Connector 7.2

Helper function to cache the Acquia Lift version.

1 call to _acquia_lift_set_version()
acquia_lift_requirements in ./acquia_lift.install
Implements hook_requirements().

File

./acquia_lift.module, line 3410
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function _acquia_lift_set_version() {

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

  // 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_lift_version', $new_version);
  }
}