function RulesPlugin::exportSettings
5 calls to RulesPlugin::exportSettings()
- RulesAbstractPlugin::exportToArray in includes/
rules.core.inc - RulesCondition::exportToArray in includes/
rules.plugins.inc - RulesContainerPlugin::exportToArray in includes/
rules.core.inc - RulesLoop::exportSettings in includes/
rules.plugins.inc - RulesPlugin::exportToArray in includes/
rules.core.inc
1 method overrides RulesPlugin::exportSettings()
- RulesLoop::exportSettings in includes/
rules.plugins.inc
File
-
includes/
rules.core.inc, line 1411
Class
- RulesPlugin
- Base class for rules plugins.
Code
protected function exportSettings() {
$export = array();
if (!$this->isRoot()) {
foreach ($this->pluginParameterInfo() as $name => $info) {
if (($return = $this->exportParameterSetting($name, $info)) !== NULL) {
$export['USING'][$name] = $return;
}
}
foreach ($this->providesVariables() as $name => $info) {
if (!empty($info['source name'])) {
$export['PROVIDE'][$info['source name']][$name] = $info['label'];
}
}
}
return $export;
}