first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?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);
}
}
}