You are here

function calendar_block_configure in Calendar 7.3

Implementation of hook_block_configure().

File

./calendar.module, line 456
Adds calendar filtering and displays to Views.

Code

function calendar_block_configure($delta = '') {
  switch ($delta) {
    case 'calendar_legend':
      $options = calendar_list_views();
      $form['calendar_legend_view'] = array(
        '#type' => 'select',
        '#title' => t('Legend View'),
        '#description' => t('Choose the view display that contains the settings for the stripes that should be displayed in a legend in this block. Note that if you change the stripe values in that view you will need to clear the cache to pick up the new values in this block.'),
        '#default_value' => variable_get('calendar_legend_view_' . $delta, ''),
        '#options' => $options,
      );
      return $form;
  }
}