function availability_calendars_admin_settings in Availability Calendars 5
Same name and namespace in other branches
- 6.2 availability_calendars.admin.inc \availability_calendars_admin_settings()
- 6 availability_calendars.module \availability_calendars_admin_settings()
- 7.2 availability_calendars.admin.inc \availability_calendars_admin_settings()
Settings page callback.
1 string reference to 'availability_calendars_admin_settings'
- availability_calendars_menu in ./
availability_calendars.module - Implementation of hook_menu()
File
- ./
availability_calendars.module, line 49 - Availability Calendars Module
Code
function availability_calendars_admin_settings() {
$form = array();
$form['display'] = array(
'#type' => 'fieldset',
'#title' => t('View settings'),
'#description' => t('Check where you want availability calendars to be displayed. If you choose none of the suggested places below you will need to output it manually using %func function.', array(
'%func' => 'theme_availability_calendars_node()',
)),
);
$form['display']['availability_calendars_display_nodeview'] = array(
'#type' => 'checkbox',
'#title' => t('Node view page'),
'#default_value' => variable_get('availability_calendars_display_nodeview', TRUE),
);
$form['display']['availability_calendars_display_monthcount'] = array(
'#type' => 'textfield',
'#title' => t('Number of months to display'),
'#default_value' => variable_get('availability_calendars_display_monthcount', 12),
'#description' => t("Your calendars will show this number of months to all users except those with the 'edit own availability calendars' or 'edit availability calendars' who will always see 3 extra months on the calendars they can edit. This is to allow them to enter information into future calendars before it is made publicly available."),
);
//TODO: add status codes and css classes in here
return system_settings_form($form);
}