You are here

function workflow_views_handler_field_sid::options_form in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow_views/includes/workflow_views_handler_field_sid.inc \workflow_views_handler_field_sid::options_form()

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

Overrides views_handler_field::options_form

File

workflow_views/handlers/workflow_views_handler_field_sid.inc, line 18
Provide views field handler for workflow.module.

Class

workflow_views_handler_field_sid
Field handler to provide simple status name or renderer.

Code

function options_form(&$form, &$form_state) {
  $form['value'] = array(
    '#title' => t('Display value'),
    '#description' => t('Determines how the state will be displayed.'),
    '#type' => 'select',
    '#options' => array(
      '0' => t('State name'),
      '1' => t('State value'),
      // Keep this value for backwards compatibility.
      'count' => t('Count number of entities with this state'),
    ),
    '#default_value' => $this->options['value'],
  );
  parent::options_form($form, $form_state);
}