function contextphp_init in Context PHP 7
Same name and namespace in other branches
- 6 contextphp.module \contextphp_init()
Implementation of hook_init().
File
- ./
contextphp.module, line 54
Code
function contextphp_init() {
$map = context_condition_map();
if (!empty($map['php']) && ($plugin = context_get_plugin('condition', 'php'))) {
$plugin
->execute();
}
$map = context_reactions();
if (!empty($map['php']) && ($plugin = context_get_plugin('reaction', 'php'))) {
$plugin
->execute();
}
}