function calendar_plugin_display_page::options_summary in Calendar 7
Same name and namespace in other branches
- 6.2 includes/calendar_plugin_display_page.inc \calendar_plugin_display_page::options_summary()
- 7.2 includes/calendar_plugin_display_page.inc \calendar_plugin_display_page::options_summary()
Provide the summary for attachment options in the views UI.
This output is returned as an array.
Overrides views_plugin_display_page::options_summary
File
- includes/
calendar_plugin_display_page.inc, line 93 - Views page plugin for the Calendar module.
Class
- calendar_plugin_display_page
- The plugin that handles a full calendar page.
Code
function options_summary(&$categories, &$options) {
// It is very important to call the parent function here:
parent::options_summary($categories, $options);
$variables = array(
'module' => 'calendar',
'topic' => 'settings',
);
$categories['calendar_settings'] = array(
'title' => theme('advanced_help_topic', $variables) . t('Calendar settings'),
);
$colors = $this
->get_option('calendar_colors');
$colors_taxonomy = $this
->get_option('calendar_colors_taxonomy');
$options['calendar_colors'] = array(
'category' => 'calendar_settings',
'title' => t('Legend Content Types'),
'value' => t('Edit'),
);
$options['calendar_colors_vocabulary'] = array(
'category' => 'calendar_settings',
'title' => t('Legend Vocabularies'),
'value' => t('Edit'),
);
$options['calendar_colors_taxonomy'] = array(
'category' => 'calendar_settings',
'title' => t('Legend Terms'),
'value' => t('Edit'),
);
if (function_exists('og_all_groups_options')) {
$colors_group = $this
->get_option('calendar_colors_group');
$options['calendar_colors_group'] = array(
'category' => 'calendar_settings',
'title' => t('Legend Groups'),
'value' => t('Edit'),
);
}
$popup_options = $this
->popup_options();
$default = $this
->get_option('calendar_popup');
$options['calendar_popup'] = array(
'category' => 'calendar_settings',
'title' => t('Date changer'),
'value' => isset($default) ? $popup_options[$default] : $popup_options[0],
);
$default = $this
->get_option('calendar_date_link');
$options['calendar_date_link'] = array(
'category' => 'calendar_settings',
'title' => t('Add new date link'),
'value' => !empty($default) ? check_plain(node_type_get_name($default)) : t('None'),
);
}