You are here

function fullcalendar_admin_settings in FullCalendar 6

Same name and namespace in other branches
  1. 6.2 includes/fullcalendar.admin.inc \fullcalendar_admin_settings()
  2. 7.2 includes/fullcalendar.admin.inc \fullcalendar_admin_settings()
  3. 7 fullcalendar.admin.inc \fullcalendar_admin_settings()

General configuration form for controlling the fullcalendar behaviour.

1 string reference to 'fullcalendar_admin_settings'
fullcalendar_menu in ./fullcalendar.module
Implementation of hook_menu().

File

./fullcalendar.admin.inc, line 11
Administrative page callbacks for the fullcalendar module.

Code

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);
}