You are here

protected function ViewsRulesLoop::importSettings in Views Rules 7

Overrides RulesPlugin::importSettings

File

rules/views_rules.plugin.inc, line 207
Views Rules plugin implementations.

Class

ViewsRulesLoop
Loop plugin for using results from a view with Rules displays.

Code

protected function importSettings($export) {

  // Import view.
  $this->info['view_name'] = $export['VIEW'];
  $this->info['display_name'] = $export['DISPLAY'];

  // Import row variables.
  foreach ($export['ROW VARIABLES'] as $name => $variable) {
    $this->settings[$name . ':var'] = key($variable);
    $this->settings[$name . ':label'] = current($variable);
  }
  parent::importSettings($export);
}