You are here

function views_handler_field_counter::options_form in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_field_counter.inc \views_handler_field_counter::options_form()
  2. 7.3 handlers/views_handler_field_counter.inc \views_handler_field_counter::options_form()

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

Overrides views_handler_field::options_form

File

handlers/views_handler_field_counter.inc, line 10

Class

views_handler_field_counter

Code

function options_form(&$form, &$form_state) {
  parent::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.'),
    //'#process' => array('views_process_dependency'),
    '#size' => 2,
  );
}