You are here

function context_reaction_delta::execute in Delta 7.3

Same name and namespace in other branches
  1. 7.2 plugins/context_reaction_delta.inc \context_reaction_delta::execute()

@todo

File

plugins/context/context_reaction_delta.inc, line 33

Class

context_reaction_delta
Expose themes as context reactions.

Code

function execute() {
  foreach (context_active_contexts() as $context) {
    if (!empty($context->reactions['delta']['delta_template'])) {
      $template = $context->reactions['delta']['delta_template'];
      if (delta_enabled($template)) {
        delta_inject($template);
      }
    }
  }
}