protected function ViewsRulesLoop::exportSettings in Views Rules 7
Overrides RulesPlugin::exportSettings
File
- rules/
views_rules.plugin.inc, line 191 - Views Rules plugin implementations.
Class
- ViewsRulesLoop
- Loop plugin for using results from a view with Rules displays.
Code
protected function exportSettings() {
$export = array();
$export['VIEW'] = $this->info['view_name'];
$export['DISPLAY'] = $this->info['display_name'];
$export += parent::exportSettings();
$export['ROW VARIABLES'] = array();
foreach ($this
->rowVariables() as $name => $info) {
$export['ROW VARIABLES'][$info['source name']][$name] = $info['label'];
}
return $export;
}