function views_handler_argument::export_summary
Export handler for summary export.
Arguments can have styles for the summary view. This special export handler makes sure this works properly.
Return value
string The export summary.
File
-
handlers/
views_handler_argument.inc, line 1183
Class
- views_handler_argument
- Base class for arguments.
Code
public function export_summary($indent, $prefix, $storage, $option, $definition, $parents) {
$output = '';
$name = $this->options['summary'][$option];
$options = $this->options['summary_options'];
$plugin = views_get_plugin('style', $name);
if ($plugin) {
$plugin->init($this->view, $this->view->display_handler->display, $options);
// Write which plugin to use.
$output .= $indent . $prefix . "['summary']['{$option}'] = '{$name}';\n";
// Pass off to the plugin to export itself.
$output .= $plugin->export_options($indent, $prefix . "['summary_options']");
}
return $output;
}