function date_api_filter_handler::export_plugin in Date 6.2
Make sure our custom options get exported. Handle the options we know about, pass the rest to the parent plugin.
File
- includes/
date_api_filter_handler.inc, line 89 - Date Views filter handler.
Class
- date_api_filter_handler
- A flexible, configurable date filter.
Code
function export_plugin($indent, $prefix, $storage, $option, $definition, $parents) {
$output = '';
if (in_array($option, array(
'date_method',
'granularity',
'form_type',
'default_date',
'default_to_date',
'year_range',
))) {
$name = $this->options[$option];
$output .= $indent . $prefix . "['{$option}'] = '{$name}';\n";
return $output;
}
return parent::export_plugin($indent, $prefix, $storage, $option, $definition, $parents);
}