You are here

protected function Rule::exportToArray in Rules 7.2

Overrides RulesActionContainer::exportToArray

File

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

Class

Rule
An actual rule.

Code

protected function exportToArray() {
  $export = parent::exportToArray();
  if (!$this
    ->isRoot()) {
    $export[strtoupper($this
      ->plugin())]['LABEL'] = $this->label;
  }
  return $export;
}