You are here

function context_condition::condition_met in Context 7.3

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

Marks a context as having met this particular condition.

15 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_context_all::execute in plugins/context_condition_context_all.inc
Execute.
context_condition_default::execute in plugins/context_condition_default.inc
context_condition_language::execute in plugins/context_condition_language.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);
}