1 views_handler_field_counter.inc views_handler_field_counter::options_form(&$form, &$form_state)

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

Overrides views_handler_field::options_form

File

core/modules/views/handlers/views_handler_field_counter.inc, line 20
Definition of views_handler_field_counter.

Class

views_handler_field_counter
Field handler to show a counter of the current row.

Code

function options_form(&$form, &$form_state) {
  $form['counter_start'] = array(
    '#type' => 'textfield',
    '#title' => t('Starting value'),
    '#default_value' => $this->options['counter_start'],
    '#description' => t('Specify the number the counter should start at.'),
    '#size' => 2,
  );

  parent::options_form($form, $form_state);
}