function tripal_views_handler_filter_select_string::init

2.x tripal_views_handler_filter_select_string.inc tripal_views_handler_filter_select_string::init(&$view, &$options)
3.x tripal_views_handler_filter_select_string.inc tripal_views_handler_filter_select_string::init(&$view, &$options)

Provide some extra help to get the operator/value easier to use.

This likely has to be overridden by filters which are more complex than simple operator/value.

Overrides views_handler_filter::init

1 call to tripal_views_handler_filter_select_string::init()
tripal_views_handler_filter_select_id::init in tripal_views/views/handlers/tripal_views_handler_filter_select_id.inc
Provide some extra help to get the operator/value easier to use.
1 method overrides tripal_views_handler_filter_select_string::init()
tripal_views_handler_filter_select_id::init in tripal_views/views/handlers/tripal_views_handler_filter_select_id.inc
Provide some extra help to get the operator/value easier to use.

File

tripal_views/views/handlers/tripal_views_handler_filter_select_string.inc, line 18
Contains tripal_views_handler_filter_select_string Filter Handler

Class

tripal_views_handler_filter_select_string
This Handler provides a generic select list for any chado field that is a string The select list includes all distinct values for that field.

Code

function init(&$view, &$options) {
  parent::init($view, $options);

  // Backwards compatibility
  if (isset($this->options['expose']['values_form_type'])) {
    $this->options['values_form_type'] = $this->options['expose']['values_form_type'];
    unset($this->options['expose']['values_form_type']);
  }
  if (isset($this->options['expose']['select_multiple'])) {
    $this->options['select_multiple'] = $this->options['expose']['select_multiple'];
    unset($this->options['expose']['select_multiple']);
  }
  if (isset($this->options['expose']['select_optional'])) {
    $this->options['select_optional'] = $this->options['expose']['select_optional'];
    unset($this->options['expose']['select_optional']);
  }
  if (isset($this->options['expose']['max_length'])) {
    $this->options['max_length'] = $this->options['expose']['max_length'];
    unset($this->options['expose']['max_length']);
  }
}