function event_admin_overview_settings in Event 5
Same name and namespace in other branches
- 5.2 event.module \event_admin_overview_settings()
Displays and allows an administrator to change the user overview settings for this module.
Return value
the content for the user overview settings page.
Related topics
1 string reference to 'event_admin_overview_settings'
- event_menu in ./
event.module - Implementation of hook_menu()
File
- ./
event.module, line 216
Code
function event_admin_overview_settings() {
$form['event_upcoming_limit'] = array(
'#type' => 'textfield',
'#title' => t('Upcoming event block limit'),
'#default_value' => variable_get('event_upcoming_limit', '6'),
'#maxlength' => 5,
'#size' => 2,
'#description' => t('Limit the amount of events displayed in the upcoming events block by this amount.'),
);
$form['event_overview'] = array(
'#type' => 'radios',
'#title' => t('Default overview'),
'#default_value' => variable_get('event_overview', 'month'),
'#options' => array(
'day' => t('Day'),
'week' => t('Week'),
'month' => t('Month'),
'table' => t('Table'),
'list' => t('List'),
),
'#description' => t('The default event view to display when no format is specifically requested. This is also the view that will be displayed from the block calendar links.'),
);
$form['event_table_duration'] = array(
'#type' => 'textfield',
'#title' => t('Table view default period'),
'#default_value' => variable_get('event_table_duration', '30'),
'#maxlength' => 5,
'#size' => 3,
'#description' => t('The default number of days to display in the table view. You can specify a different number of days in the url. More info on the event url format !link', array(
'!link' => l(t('here'), 'admin/help/event#url-format'),
)),
);
if (module_exists('taxonomy')) {
$form['event_taxonomy_control'] = array(
'#type' => 'radios',
'#title' => t('Taxonomy filter controls'),
'#default_value' => variable_get('event_taxonomy_control', 'all'),
'#options' => array(
'all' => t('Show taxonomy filter control on calendar views'),
'request' => t('Only show taxonomy filter control when taxonomy filter view is requested'),
'never' => t('Never show taxonomy filter control'),
),
);
}
$form['event_type_control'] = array(
'#type' => 'radios',
'#title' => t('Content type filter controls'),
'#default_value' => variable_get('event_type_control', 'all'),
'#options' => array(
'all' => t('Show content type filter control on calendar views'),
'request' => t('Only show content type filter control when content type filter view is requested'),
'never' => t('Never show content type filter control'),
),
);
return system_settings_form($form);
}