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) |
Overrides tripal_views_handler_filter_select_string::init
File
- tripal_chado_views/
views/ handlers/ tripal_views_handler_filter_select_id.inc, line 20 - Contains tripal_views_handler_filter_select_id
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];
}
}