You are here

public function state_flow_entity_handler_field_state_flow_states::options_form in State Machine 7.3

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

Overrides views_handler_field::options_form

1 call to state_flow_entity_handler_field_state_flow_states::options_form()
state_flow_entity_handler_field_link::options_form in modules/state_flow_entity/includes/views/state_flow_entity_handler_field_link.inc
Default options form provides the label widget that all fields should have.
1 method overrides state_flow_entity_handler_field_state_flow_states::options_form()
state_flow_entity_handler_field_link::options_form in modules/state_flow_entity/includes/views/state_flow_entity_handler_field_link.inc
Default options form provides the label widget that all fields should have.

File

modules/state_flow_entity/includes/views/state_flow_entity_handler_field_state_flow_states.inc, line 52
A helper class that is extended by state_flow_entity_handler_field_link and state_flow_entity_handler_field_events_form.

Class

state_flow_entity_handler_field_state_flow_states
@file A helper class that is extended by state_flow_entity_handler_field_link and state_flow_entity_handler_field_events_form.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $options = $this
    ->option_definition();
  $form['active_revision_handling'] = array(
    '#type' => 'select',
    '#title' => t('Show for these revisions'),
    '#description' => t('"Active" revisions are those with the most recent state change or edit.'),
    '#options' => array(
      'active' => 'Active',
      'inactive' => 'Inactive',
      'both' => 'Both',
    ),
    '#default_value' => $this->options['active_revision_handling'],
    '#weight' => -103,
  );
}