function context_condition::condition_met

cis7 context_condition.inc context_condition::condition_met($context, $value = NULL)
cle7 context_condition.inc context_condition::condition_met($context, $value = NULL)
elmsmedia7 context_condition.inc context_condition::condition_met($context, $value = NULL)
icor7 context_condition.inc context_condition::condition_met($context, $value = NULL)
meedjum_blog7 context_condition.inc context_condition::condition_met($context, $value = NULL)
mooc7 context_condition.inc context_condition::condition_met($context, $value = NULL)

Marks a context as having met this particular condition.

17 calls to context_condition::condition_met()
context_condition_book::execute in sites/all/modules/ulmus/context/plugins/context_condition_book.inc
context_condition_context::execute in sites/all/modules/ulmus/context/plugins/context_condition_context.inc
Execute.
context_condition_context_all::execute in sites/all/modules/ulmus/context/plugins/context_condition_context_all.inc
Execute.
context_condition_language::execute in sites/all/modules/ulmus/context/plugins/context_condition_language.inc
context_condition_menu::execute in sites/all/modules/ulmus/context/plugins/context_condition_menu.inc
Override of execute().

... See full list

File

sites/all/modules/ulmus/context/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);
}