You are here

function context_reaction_theme_html::execute in Context 7.3

Set additional classes onto the 'body_classes'.

Overrides context_reaction_theme::execute

File

plugins/context_reaction_theme_html.inc, line 26

Class

context_reaction_theme_html
Expose themes as context reactions.

Code

function execute(&$vars) {
  $classes = array();
  foreach ($this
    ->get_contexts() as $k => $v) {
    if (!empty($v->reactions[$this->plugin]['class'])) {
      $vars['classes_array'][] = $v->reactions[$this->plugin]['class'];
    }
  }
}