forked from pdrakeweb/Drupal-FullCalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fullcalendar.admin.inc
32 lines (28 loc) · 980 Bytes
/
fullcalendar.admin.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// $Id$
/**
* @file
* Administrative page callbacks for the fullcalendar module.
*/
/**
* General configuration form for controlling the fullcalendar behaviour.
*/
function fullcalendar_admin_settings() {
$fullcalendar_path = variable_get('fullcalendar_path', FULLCALENDAR_PATH);
$form['fullcalendar_path'] = array(
'#type' => 'textfield',
'#title' => t('Path to FullCalendar'),
'#default_value' => $fullcalendar_path,
'#description' => t('Enter the path relative to Drupal root where the FullCalendar plugin directory is located. NO trailing slash!'),
);
$form['fullcalendar_compression_type'] = array(
'#type' => 'radios',
'#title' => t('Choose FullCalendar compression level'),
'#options' => array(
'min' => t('Production (Minified)'),
'none' => t('Development (Uncompressed Code)'),
),
'#default_value' => variable_get('fullcalendar_compression_type', 'min'),
);
return system_settings_form($form);
}