You are here

function timefield_handler_field_timefield_duration::options_form in Timefield 7

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

views/timefield_handler_field_timefield_duration.inc, line 27
Contains the duration field handler.

Class

timefield_handler_field_timefield_duration
@file Contains the duration field handler.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // @TODO: when we improve duration formatting options, utilize a helper
  // function to return a form for settings these values here and in the main
  // display formatter settings in the module.
  $form['duration_format'] = array(
    '#title' => t('Time Duration Format'),
    '#type' => 'select',
    '#options' => _timefield_duration_options(),
    '#default_value' => $this->options['duration_format'],
    '#required' => TRUE,
  );
  return $form;
}