context_condition_language.inc in Context 6
Same filename and directory in other branches
File
plugins/context_condition_language.incView source
<?php
/**
* Expose current language as a context condition.
*/
class context_condition_language extends context_condition {
function condition_values() {
return module_exists('locale') ? locale_language_list() : array();
}
function execute($value) {
foreach ($this
->get_contexts($value) as $context) {
$this
->condition_met($context, $value);
}
}
}
Classes
Name | Description |
---|---|
context_condition_language | Expose current language as a context condition. |