function context_var_init in Context: Variable 7
Same name and namespace in other branches
- 6 context_var.module \context_var_init()
Implements hook_init().
File
- ./
context_var.module, line 54
Code
function context_var_init() {
// get the mapping of conditions and if they should execute
$map = context_condition_map();
if (!empty($map['context_var']) && ($plugin = context_get_plugin('condition', 'context_var'))) {
$plugin
->execute();
}
}