function RulesContainerPlugin::exportToArray

Overrides RulesPlugin::exportToArray

1 call to RulesContainerPlugin::exportToArray()
RulesActionContainer::exportToArray in includes/rules.core.inc
1 method overrides RulesContainerPlugin::exportToArray()
RulesActionContainer::exportToArray in includes/rules.core.inc

File

includes/rules.core.inc, line 2462

Class

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

Code

protected function exportToArray() {
    $export = array();
    if (!empty($this->info['variables'])) {
        $export['USES VARIABLES'] = $this->info['variables'];
    }
    if ($this->exportFlat()) {
        $export += $this->exportSettings() + $this->exportChildren();
    }
    else {
        $export[strtoupper($this->plugin())] = $this->exportSettings() + $this->exportChildren();
    }
    return $export;
}