function calendar_view_plugin_style::option_definition in Calendar 6.2
Same name and namespace in other branches
- 7.2 includes/calendar_view_plugin_style.inc \calendar_view_plugin_style::option_definition()
Set default options
File
- includes/
calendar_view_plugin_style.inc, line 40
Class
- calendar_view_plugin_style
- Style plugin to render the year, month, week, or day calendar view.
Code
function option_definition() {
$options = parent::option_definition();
$options['name_size'] = array(
'default' => 3,
'export' => 'export_plugin',
);
$options['with_weekno'] = array(
'default' => 0,
'export' => 'export_plugin',
);
$options['multiday_theme'] = array(
'default' => module_exists('calendar_multiday') ? '1' : '0',
'export' => 'export_plugin',
);
$options['theme_style'] = array(
'default' => module_exists('calendar_multiday') ? '1' : '0',
'export' => 'export_plugin',
);
$options['max_items'] = array(
'default' => 0,
'export' => 'export_plugin',
);
$options['max_items_behavior'] = array(
'default' => 'more',
'export' => 'export_plugin',
);
$options['groupby_times'] = array(
'default' => 'hour',
'export' => 'export_plugin',
);
$options['groupby_times_custom'] = array(
'default' => '',
'export' => 'export_plugin',
);
$options['groupby_field'] = array(
'default' => '',
'export' => 'export_plugin',
);
return $options;
}