You are here

function date_api_argument_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_argument_handler.inc, line 67
Views argument handler.

Class

date_api_argument_handler
Date API argument handler.

Code

function export_plugin($indent, $prefix, $storage, $option, $definition, $parents) {
  $output = '';
  if (in_array($option, array(
    'year_range',
    'granularity',
    'default_argument_type',
    'date_method',
  ))) {
    $name = $this->options[$option];
    $output .= $indent . $prefix . "['{$option}'] = '{$name}';\n";
    return $output;
  }
  return parent::export_plugin($indent, $prefix, $storage, $option, $definition, $parents);
}