function environment_context_init in Environment 7
Implements hook_init().
File
- modules/
environment_context/ environment_context.module, line 10 - Describe context plugins for Environment Context module.
Code
function environment_context_init() {
// Trigger environment context condition.
if (module_exists('context') && function_exists('context_get_plugin') && ($plugin = context_get_plugin('condition', 'environment'))) {
$plugin
->execute((array) variable_get('environment', array()));
}
}