Tripal v1.0 (6.x-1.0)
|
Go to the source code of this file.
Functions | |
tripal_feature_views_data () | |
tripal_feature_views_handlers () | |
tripal_feature_views_data_alter (&$data) | |
tripal_feature_views_default_views () |
This file contains the basic functions for views integration of chado/tripal organism 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_feature.views.inc.
tripal_feature_views_data_alter | ( | &$ | data | ) |
Implementation of hook_views_data_alter().
Definition at line 122 of file tripal_feature.views.inc.
{ if ( !(is_array($db_url) and array_key_exists('chado', $db_url)) ) { // Add featuer relationship to node $data['node']['feature_chado_nid'] = array( 'group' => 'Feature', 'title' => 'Feature Node', 'help' => 'Links Chado Feature 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_feature', 'base field' => 'nid' ), ); } }