function RulesContainerPlugin::import

Overrides RulesPlugin::import

1 call to RulesContainerPlugin::import()
RulesActionContainer::import in includes/rules.core.inc
Applies the given export.
1 method overrides RulesContainerPlugin::import()
RulesActionContainer::import in includes/rules.core.inc
Applies the given export.

File

includes/rules.core.inc, line 2476

Class

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

Code

public function import(array $export) {
    if (!empty($export['USES VARIABLES'])) {
        $this->info['variables'] = $export['USES VARIABLES'];
    }
    // Care for exports having the export array nested in a sub-array.
    if (!$this->exportFlat()) {
        $export = reset($export);
    }
    $this->importSettings($export);
    $this->importChildren($export);
}