You are here

function scheduler_handler_field_scheduler_countdown::options_form in Scheduler 6

File

./scheduler_handler_field_scheduler_countdown.inc, line 64
Implementation of scheduler_handler_scheduler_countdown field handler

Class

scheduler_handler_field_scheduler_countdown
Field handler to display a countdown until a scheduled action

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['countdown_display'] = array(
    '#title' => t('Display countdown as'),
    '#type' => 'radios',
    '#options' => array(
      'smart' => t('Smart mode'),
      'seconds' => t('Seconds'),
      'minutes' => t('Minutes'),
      'hours' => t('Hours'),
      'days' => t('Days'),
      'weeks' => t('Weeks'),
    ),
    '#default_value' => $this->options['countdown_display'],
  );
  $form['units_display'] = array(
    '#title' => t('Display time units'),
    '#type' => 'radios',
    '#options' => array(
      'long' => t('Long (e.g. 3 days)'),
      'short' => t('Short (e.g. 3d)'),
      'none' => t('No units at all'),
    ),
    '#default_value' => $this->options['units_display'],
  );
}