You are here

public function RulesContainerPlugin::import in Rules 7.2

Applies the given export.

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 2456
Rules base classes and interfaces needed for any rule evaluation.

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);
}