You are here

public function olark_context_reaction_add::execute in Olark Chat 7

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

Execute the contexts.

File

plugins/olark_context_reaction_add.inc, line 33
Adds a Context module reaction for the Olark module.

Class

olark_context_reaction_add
Add Olark code to the page.

Code

public function execute() {
  $contexts = $this
    ->get_contexts();
  foreach ($contexts as $context) {
    if (!empty($context->reactions[$this->plugin])) {
      return TRUE;
    }
  }
}