function context_reaction_delta::execute in Delta 7.2
Same name and namespace in other branches
- 7.3 plugins/context/context_reaction_delta.inc \context_reaction_delta::execute()
Set 'section_title', and 'section_subtitle' if not set and merge all additional classes onto the 'body_classes'.
File
- plugins/
context_reaction_delta.inc, line 40
Class
- context_reaction_delta
- Expose themes as context reactions.
Code
function execute(&$vars) {
$contexts = context_active_contexts();
foreach ($contexts as $context) {
if (!empty($context->reactions['delta'])) {
// add the delta override variable to the $vars so it can be used in omega_preprocess
$vars['delta'] = 'theme_delta_' . $context->reactions['delta']['delta_template'] . '_settings';
// allow delta to load it's own custom form data, emulating a custom theme.
global $delta_template;
$delta_template = isset($vars['delta']) ? $vars['delta'] : NULL;
}
}
}