You are here

function olark_context_reaction_add::execute in Olark Chat 6

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

File

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

Class

olark_context_reaction_add
Add Olark code to the page.

Code

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