You are here

function context_condition::condition_met in Context 6

Same name and namespace in other branches
  1. 6.3 plugins/context_condition.inc \context_condition::condition_met()
  2. 7.3 plugins/context_condition.inc \context_condition::condition_met()

Marks a context as having met this particular condition.

11 calls to context_condition::condition_met()
context_condition_book::execute in plugins/context_condition_book.inc
context_condition_context::execute in plugins/context_condition_context.inc
Execute.
context_condition_language::execute in plugins/context_condition_language.inc
context_condition_menu::execute in plugins/context_condition_menu.inc
Override of execute().
context_condition_node::execute in plugins/context_condition_node.inc

... See full list

File

plugins/context_condition.inc, line 138

Class

context_condition
Base class for a context condition.

Code

function condition_met($context, $value = NULL) {
  if (isset($value)) {
    $this->values[$value] = isset($this->values[$value]) ? $this->values[$value] : array();
    $this->values[$value][] = $context->name;
  }
  context_condition_met($context, $this->plugin);
}