You are here

function fullcalendar_legend_block_configure in FullCalendar 7.2

Implements hook_block_configure().

File

fullcalendar_legend/fullcalendar_legend.module, line 37
Adds a legend of event types.

Code

function fullcalendar_legend_block_configure($delta = '') {
  $form = array();
  if ($delta == 'fullcalendar_legend') {
    $form['fullcalendar_legend_type'] = array(
      '#type' => 'select',
      '#title' => t('Legend type'),
      '#options' => array(
        'bundle' => t('Bundle'),
        'taxonomy' => t('Taxonomy'),
      ),
      '#default_value' => variable_get('fullcalendar_legend_type', 'bundle'),
      '#description' => t('Select the type of legend to display.'),
    );
  }
  return $form;
}