function tripal_views_handler_filter_select_id::init

2.x tripal_views_handler_filter_select_id.inc tripal_views_handler_filter_select_id::init(&$view, &$options)
3.x tripal_views_handler_filter_select_id.inc tripal_views_handler_filter_select_id::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 tripal_views_handler_filter_select_string::init

File

tripal_views/views/handlers/tripal_views_handler_filter_select_id.inc, line 20
Contains tripal_views_handler_filter_select_string

Class

tripal_views_handler_filter_select_id
This Handler provides a select list for the type field

Code

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

  if (preg_match('/(\w+)_id/', $this->field, $matches)) {
    $this->parent_table = $matches[1];
  }
}