function contextphp_init in Context PHP 6
Same name and namespace in other branches
- 7 contextphp.module \contextphp_init()
Implementation of hook_init().
File
- ./
contextphp.module, line 50
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();
}
}