You are here

function _environment_indicator_has_old_vars in Environment Indicator 7.2

Helper function to determine if 7.x-1.x variables are present.

1 call to _environment_indicator_has_old_vars()
environment_indicator_requirements in ./environment_indicator.install
Implements hook_requirements().

File

./environment_indicator.module, line 585
Module implementation file.

Code

function _environment_indicator_has_old_vars() {
  $color = !is_null(variable_get('environment_indicator_color'));
  $enabled = !is_null(variable_get('environment_indicator_enabled'));
  $name = !is_null(variable_get('environment_indicator_text'));
  return $color || $enabled || $name;
}