function views_handler_argument::export_plugin
3.x views_handler_argument.inc | views_handler_argument::export_plugin($indent, $prefix, $storage, $option, $definition, $parents) |
Generic plugin export handler.
Since style and validation plugins have their own export handlers, this one is currently only used for default argument plugins.
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 1140 - @todo.
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';
}
$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;
}