protected function RulesCondition::exportToArray in Rules 7.2
Overrides RulesAbstractPlugin::exportToArray
File
- includes/
rules.plugins.inc, line 129 - Contains plugin info and implementations not needed for rule evaluation.
Class
- RulesCondition
- Implements a rules condition.
Code
protected function exportToArray() {
$not = $this->negate ? 'NOT ' : '';
$export = $this
->exportSettings();
// Abbreviate the export making "USING" implicit.
return array(
$not . $this->elementName => isset($export['USING']) ? $export['USING'] : array(),
);
}