You are here

public function Rule::import in Rules 7.2

Applies the given export.

Overrides RulesActionContainer::import

File

includes/rules.plugins.inc, line 320
Contains plugin info and implementations not needed for rule evaluation.

Class

Rule
An actual rule.

Code

public function import(array $export) {
  if (!$this
    ->isRoot() && isset($export[strtoupper($this
    ->plugin())]['LABEL'])) {
    $this->label = $export[strtoupper($this
      ->plugin())]['LABEL'];
  }
  parent::import($export);
}