function spaces_context_load_alter in Spaces 7
Same name and namespace in other branches
- 6.3 spaces.overrides.inc \spaces_context_load_alter()
- 7.3 spaces.overrides.inc \spaces_context_load_alter()
Implements hook_context_load_alter().
File
- ./
spaces.overrides.inc, line 6
Code
function spaces_context_load_alter(&$context) {
$space = spaces_get_space();
if ($space) {
foreach (array_keys(context_reactions()) as $plugin) {
$override = $space->controllers->context
->get("{$context->name}:reaction:{$plugin}");
if (!is_null($override)) {
$context->reactions[$plugin] = $override;
}
}
}
}