You are here

public function state_flow_entity_handler_field_state_flow_states::init in State Machine 7.3

Init the handler with necessary data.

Parameters

view $view: The $view object this handler is attached to.

array $options: The item from the database; the actual contents of this will vary based upon the type of handler.

Overrides views_handler_field::init

File

modules/state_flow_entity/includes/views/state_flow_entity_handler_field_state_flow_states.inc, line 39
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 init(&$view, &$options) {

  // An older version of this handler used a boolean option
  // show_only_for_active_revision_ids which corresponds to the 'active'
  // setting in 'active_revision_handling'.
  if (!empty($options['show_only_for_active_revision_ids']) && empty($options['active_revision_handling'])) {
    $options['active_revision_handling'] = 'active';
  }
  parent::init($view, $options);
}