1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- function retrieve_chado_feature_views_data () {
- global $db_url;
- $data = array();
-
-
-
-
- if(is_array($db_url) and array_key_exists('chado',$db_url)){
-
- return $data;
- }
-
- $data['chado_feature']['table'] = array(
- 'field' => 'nid',
- );
-
-
-
-
- $data['chado_feature']['table']['join']['feature'] = array(
- 'left_field' => 'feature_id',
- 'field' => 'feature_id',
- );
-
-
- $data['node']['table']['join']['chado_feature'] = array(
- 'left_field' => 'nid',
- 'field' => 'nid',
- );
-
-
- $data['node']['table']['join']['feature'] = array(
- 'left_table' => 'chado_feature',
- 'left_field' => 'nid',
- 'field' => 'nid',
- );
-
-
- $data['chado_feature']['feature_nid'] = array(
- 'group' => 'Feature',
- 'title' => 'Feature Node',
- 'help' => 'Links Chado Feature Fields/Data to the Nodes in the current View.',
- 'real field' => 'feature_id',
- 'relationship' => array(
- 'handler' => 'views_handler_relationship',
- 'title' => t('Chado => Feature'),
- 'label' => t('Chado => Feature'),
- 'real field' => 'feature_id',
- 'base' => 'feature',
- 'base field' => 'feature_id'
- ),
- );
-
- $data['chado_feature']['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('Chado => Node'),
- 'label' => t('Chado => Node'),
- 'real field' => 'nid',
- 'base' => 'node',
- 'base field' => 'nid'
- ),
- );
-
- return $data;
- }
|