function RulesContainerPlugin::importChildren

5 calls to RulesContainerPlugin::importChildren()
Rule::importChildren in includes/rules.plugins.inc
RulesConditionContainer::importChildren in includes/rules.core.inc
RulesContainerPlugin::import in includes/rules.core.inc
Applies the given export.
RulesLoop::importChildren in includes/rules.plugins.inc
RulesRuleSet::importChildren in includes/rules.plugins.inc
4 methods override RulesContainerPlugin::importChildren()
Rule::importChildren in includes/rules.plugins.inc
RulesConditionContainer::importChildren in includes/rules.core.inc
RulesLoop::importChildren in includes/rules.plugins.inc
RulesRuleSet::importChildren in includes/rules.plugins.inc

File

includes/rules.core.inc, line 2488

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

protected function importChildren($export, $key = NULL) {
    $key = isset($key) ? $key : strtoupper($this->plugin());
    foreach ($export[$key] as $child_export) {
        $plugin = _rules_import_get_plugin(rules_array_key($child_export), $this instanceof RulesActionInterface ? 'action' : 'condition');
        $child = rules_plugin_factory($plugin);
        $child->setParent($this);
        $child->import($child_export);
    }
}