Tripal v1.0 (6.x-1.0)
|
Go to the source code of this file.
Functions | |
tripal_stock_views_data () | |
tripal_stock_views_handlers () | |
tripal_stock_views_data_alter (&$data) | |
tripal_stock_views_pre_render (&$view) | |
tripal_stock_views_default_views () |
This file contains the basic functions for views integration of chado/tripal stock tables. Supplementary functions can be found in ./views/
Documentation on views integration can be found at http://views2.logrus.com/doc/html/index.html.
Definition in file tripal_stock.views.inc.
tripal_stock_views_data_alter | ( | &$ | data | ) |
Implementation of hook_views_data_alter().
Definition at line 143 of file tripal_stock.views.inc.
{ if ( !(is_array($db_url) and array_key_exists('chado', $db_url)) ) { // Add featuer relationship to node $data['node']['stock_chado_nid'] = array( 'group' => 'Stock', 'title' => 'Stock Node', 'help' => 'Links Chado Stock Fields/Data to the Nodes in the current View.', 'real field' => 'nid', 'relationship' => array( 'handler' => 'views_handler_relationship', 'title' => t('Node => Chado'), 'label' => t('Node => Chado'), 'real field' => 'nid', 'base' => 'chado_stock', 'base field' => 'nid' ), ); } }