You are here

function availability_calendar_block_configure in Availability Calendars 7.4

Same name and namespace in other branches
  1. 7.5 availability_calendar.module \availability_calendar_block_configure()
  2. 7.3 availability_calendar.module \availability_calendar_block_configure()

Implements hook_block_configure(). @link http://api.drupal.org/api/drupal/modules--block--block.api.php/function/...

File

./availability_calendar.module, line 272

Code

function availability_calendar_block_configure($delta = '') {
  module_load_include('inc', 'availability_calendar', 'availability_calendar');
  $form = array();
  if ($delta == 'key') {
    $form['availability_calendar_block_states_to_show'] = array(
      '#type' => 'checkboxes',
      '#title' => t('States to show'),
      '#description' => t('Check the availability states that are to be shown in the key.') . ' ' . t('Checking no states at all will allow all states.'),
      '#default_value' => variable_get('availability_calendar_block_states_to_show', array()),
      '#options' => availability_calendar_get_states('label'),
    );
  }
  return $form;
}