[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/station/schedule/ -> station_schedule.admin.inc (source)

   1  <?php
   2  // $Id: station_schedule.admin.inc,v 1.7 2009/06/04 16:19:44 drewish Exp $
   3  
   4  /**
   5   * Admin settings form.
   6   */
   7  function station_schedule_admin_settings() {
   8    $form['bc'] = array(
   9      '#type' => 'fieldset',
  10      '#title' => t('Backwards compatibility'),
  11    );
  12    $form['bc']['station_schedule_redirect_old_urls'] = array(
  13      '#type' => 'checkbox',
  14      '#title' => t('Redirect old links'),
  15      '#default_value' => variable_get('station_schedule_redirect_old_urls', 0),
  16      '#description' => t("Checking this will ensure that the station module continues to redirect old <code>/schedule</code> and <code>/station/schedule</code> links."),
  17    );
  18    $schedules = array();
  19    foreach (station_get_schedules() as $nid => $schedule) {
  20      $schedules[$nid] = $schedule['title'];
  21    }
  22    $form['bc']['station_schedule_default'] = array(
  23      '#type' => 'select',
  24      '#title' => t('Default schedule'),
  25      '#default_value' => variable_get('station_schedule_default', 0),
  26      '#options' => $schedules,
  27      '#description' => t("This you select the schedule that will be used as the default for backwards compatibility."),
  28    );
  29  
  30    return system_settings_form($form);
  31  }


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7