function tripal_views_views_pre_execute
1.x tripal_views.views.inc | tripal_views_views_pre_execute(&$view) |
Implementation of hook_views_pre_execute().
File
- tripal_views/
tripal_views.views.inc, line 699 - Tripal Views Integration
Code
function tripal_views_views_pre_execute(&$view) {
// if the base table is a chado table then we want to set the
// search path so it can find all of the tables.
// this will break views that use tables that have the same name
// as chado tables (e.g. contact).
$desc = tripal_core_get_chado_table_schema($view->base_table);
if ($desc) {
tripal_db_set_chado_search_path('chado');
}
}