You are here

function context_no_title_reaction::execute in Context No Title 7

Hide node title if option is set.

File

plugins/context_no_title_reaction.inc, line 34
Define class and override.

Class

context_no_title_reaction
@file Define class and override.

Code

function execute(&$vars) {
  foreach ($this
    ->get_contexts() as $k => $v) {
    if (isset($v->reactions[$this->plugin]) && $v->reactions[$this->plugin]['no_title']) {
      $vars['title'] = '';
    }
  }
}