function RulesConditionContainer::importChildren

Overrides RulesContainerPlugin::importChildren

File

includes/rules.core.inc, line 2648

Class

RulesConditionContainer
Base class for all condition containers.

Code

protected function importChildren($export, $key = NULL) {
  $key = isset($key) ? $key : strtoupper($this->plugin());
  // Care for negated elements.
  if (!isset($export[$key]) && isset($export['NOT ' . $key])) {
    $this->negate = TRUE;
    $key = 'NOT ' . $key;
  }
  parent::importChildren($export, $key);
}