protected function RulesConditionalPredicateElement::importPredicate in Conditional Rules 7
Same name and namespace in other branches
- 8 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::importPredicate()
Imports predicate.
2 calls to RulesConditionalPredicateElement::importPredicate()
- RulesConditionalIf::importPredicate in includes/
rules_conditional.plugin.inc - Imports predicate.
- RulesConditionalPredicateElement::importChildren in includes/
rules_conditional.core.inc - Imports predicate.
1 method overrides RulesConditionalPredicateElement::importPredicate()
- RulesConditionalIf::importPredicate in includes/
rules_conditional.plugin.inc - Imports predicate.
File
- includes/
rules_conditional.core.inc, line 519 - Conditional Rules framework implementation.
Class
- RulesConditionalPredicateElement
- Base conditional element that uses a predicate.
Code
protected function importPredicate($export, $key = NULL) {
if (!isset($key)) {
$key = strtoupper($this
->plugin());
}
$predicate = rules_plugin_factory('condition');
$this
->setPredicate($predicate);
$predicate
->import($export[$key]);
}