function views_handler_argument::export_plugin
Same name in other branches
- 7.x-3.x handlers/views_handler_argument.inc \views_handler_argument::export_plugin()
Special handling for the style export.
Arguments can have styles for the summary view. This special export handler makes sure this works properly.
1 call to views_handler_argument::export_plugin()
- views_handler_argument_date::export_plugin in handlers/
views_handler_argument_date.inc - The date handler provides some default argument types, which aren't argument default plugins, so addapt the export mechanism.
1 method overrides views_handler_argument::export_plugin()
- views_handler_argument_date::export_plugin in handlers/
views_handler_argument_date.inc - The date handler provides some default argument types, which aren't argument default plugins, so addapt the export mechanism.
File
-
handlers/
views_handler_argument.inc, line 862
Class
- views_handler_argument
- Base class for arguments.
Code
function export_plugin($indent, $prefix, $storage, $option, $definition, $parents) {
$output = '';
if ($option == 'default_argument_type') {
$type = 'argument default';
$option_name = 'default_argument_options';
}
else {
$type = 'argument validator';
$option_name = 'validate_options';
}
$plugin = $this->get_plugin($type);
$name = $this->options[$option];
if ($plugin) {
// Write which plugin to use.
$output .= $indent . $prefix . "['{$option}'] = '{$name}';\n";
// Pass off to the plugin to export itself.
$output .= $plugin->export_options($indent, $prefix . "['{$option_name}']");
}
return $output;
}