function views_handler_argument::export_summary
3.x views_handler_argument.inc | views_handler_argument::export_summary($indent, $prefix, $storage, $option, $definition, $parents) |
Export handler for summary export.
Arguments can have styles for the summary view. This special export handler makes sure this works properly.
File
- handlers/
views_handler_argument.inc, line 1092 - @todo.
Class
- views_handler_argument
- Base class for arguments.
Code
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;
}