You are here

function calendar_view_plugin_style::export_plugin in Calendar 7.2

Same name and namespace in other branches
  1. 6.2 includes/calendar_view_plugin_style.inc \calendar_view_plugin_style::export_plugin()

Make sure our custom options get exported. Handle the options we know about, pass the rest to the parent plugin.

File

includes/calendar_view_plugin_style.inc, line 67
Views calendar style plugin for the Calendar module.

Class

calendar_view_plugin_style
Style plugin to render the year, month, week, or day calendar view.

Code

function export_plugin($indent, $prefix, $storage, $option, $definition, $parents) {
  $output = '';
  if (in_array($option, array(
    'name_size',
    'with_weekno',
    'multiday_theme',
    'theme_style',
    'max_items',
    'max_items_behavior',
    'groupby_times',
    'groupby_times_custom',
    'groupby_field',
  ))) {
    $name = $this->options[$option];
    $output .= $indent . $prefix . "['{$option}'] = '{$name}';\n";
    return $output;
  }
  return parent::export_plugin($indent, $prefix, $storage, $option, $definition, $parents);
}