You are here

function context_condition_language::execute in Context 6.3

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

File

plugins/context_condition_language.inc, line 11

Class

context_condition_language
Expose current language as a context condition.

Code

function execute($value) {
  foreach ($this
    ->get_contexts($value) as $context) {
    $this
      ->condition_met($context, $value);
  }
}