function RulesCondition::exportToArray
Overrides RulesAbstractPlugin::exportToArray
File
-
includes/
rules.plugins.inc, line 129
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(),
);
}