rules_conditional.module in Conditional Rules 7
File
rules_conditional.module
View source
<?php
define('RULES_CONDITIONAL_MAX_ITERATIONS', 65535);
function rules_conditional_rules_ui_menu_alter(&$items, $base_path, $base_count) {
module_load_include('inc', 'rules_conditional', 'includes/rules_conditional.rules_admin');
_rules_conditional_rules_ui_menu_alter($items, $base_path, $base_count);
}
function rules_conditional() {
return new RulesConditional();
}
function rules_conditional_if($predicate, array $settings = array()) {
return new RulesConditionalIf($predicate, $settings);
}
function rules_conditional_else() {
return new RulesConditionalElse();
}
function rules_conditional_switch($data_selector) {
return new RulesConditionalSwitch($data_selector);
}
function rules_conditional_case(array $settings = array(), $fall_through = FALSE) {
return new RulesConditionalCase($settings, $fall_through);
}
function rules_conditional_default_case() {
return new RulesConditionalDefaultCase();
}
function rules_conditional_while($predicate, array $settings = array()) {
return new RulesConditionalWhile($predicate, $settings);
}
function rule_condition_set(array $variables = array()) {
return new RuleConditionSet($variables);
}
function rules_conditional_module_implements_alter(&$implementations, $hook) {
if ($hook == 'rules_plugin_info') {
$group = $implementations['rules_conditional'];
unset($implementations['rules_conditional']);
$implementations['rules_conditional'] = $group;
}
}