diff --git a/modules/locale.eval.inc b/modules/locale.eval.inc new file mode 100644 index 0000000..d057ec5 --- /dev/null +++ b/modules/locale.eval.inc @@ -0,0 +1,22 @@ +language == $required_language; +} + +/** + * @} + */ diff --git a/modules/locale.rules.inc b/modules/locale.rules.inc new file mode 100644 index 0000000..2402ddf --- /dev/null +++ b/modules/locale.rules.inc @@ -0,0 +1,39 @@ + t('Current interface language is'), + 'base' => 'rules_condition_language_is', + 'parameter' => array( + 'language' => array( + 'type' => 'text', + 'label' => 'Enter the token that will be compared against the current interface language.', + ), + ), + 'group' => t('Locale'), + ); + return $items; +} + +/** + * @} + */ diff --git a/rules.rules.inc b/rules.rules.inc index 0595bd7..67b0f75 100644 --- a/rules.rules.inc +++ b/rules.rules.inc @@ -28,7 +28,7 @@ function rules_core_modules() { $modules = &$drupal_static_fast; if (!isset($modules)) { - $modules = array('data', 'entity', 'node', 'system', 'user', 'rules_core'); + $modules = array('data', 'entity', 'locale', 'node', 'system', 'user', 'rules_core'); foreach (array('comment', 'taxonomy', 'php', 'path') as $module) { if (module_exists($module)) { $modules[] = $module;