function tripal_views_views_pre_render
2.x tripal_views.views.inc | tripal_views_views_pre_render(&$view) |
1.x tripal_views.views.inc | tripal_views_views_pre_render(&$view) |
Implements hook_views_pre_render().
Purpose: Intercepts the view after the query has been executed All the results are stored in $view->result Looking up the NID here ensures the query is only executed once for all stocks in the table.
Related topics
File
- tripal_views/
tripal_views.views.inc, line 19 - Tripal Views Integration
Code
function tripal_views_views_pre_render(&$view) {
// We need to unset the exposed_input for the view so we can repopulate that
// variable. This is necessary if we're using the file_upload_combo
// custom form element which adds the file_path variable to the $_GET after the
// view has populated the $view->exposed_input variable
unset($view->exposed_input);
// Add css if tripal admin tagged view
if ($view->tag == 'tripal admin') {
$tripal_admin_view_css = drupal_get_path('module', 'tripal_views') . '/theme/css/tripal_views_admin_views.css';
drupal_add_css($tripal_admin_view_css);
}
}