function environment_indicator_alter_and_cache in Environment Indicator 7.2
Helper function to alter and cache the detected environment.
Parameters
array $env: The environment array.
Return value
array The altered environment.
1 call to environment_indicator_alter_and_cache()
- environment_indicator_get_active in ./
environment_indicator.module - Helper function to get the active indicator.
File
- ./
environment_indicator.module, line 464 - Module implementation file.
Code
function environment_indicator_alter_and_cache($env) {
// Only write to the cache if not already in the cache.
if (!cache_get('environment_indicator')) {
cache_set('environment_indicator', $env);
}
drupal_alter('environment_indicator_matched_indicator', $env);
return $env;
}