tripal_core.views.inc 558 B

123456789101112131415
  1. <?php
  2. /*************************************************************************
  3. * Purpose: To add basetable_nid fields to all result arrays of a view
  4. * only if the basetable_nid field is added. This function will only be
  5. * called if chado/drupal are not in the same database (ie: only if
  6. * a join between the base and node table isn't possible.
  7. *
  8. * @params the view object passed to hook_views_pre_render
  9. * @return the views object with nids added to the result array
  10. */
  11. function tripal_core_add_node_ids_to_view (&$view) {
  12. return $view;
  13. }