123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <?php
-
- function retrieve_nd_reagent_views_data() {
- global $db_url;
- $data = array();
-
-
-
- if(is_array($db_url) and array_key_exists('chado',$db_url)){
- $database = 'chado';
- }
-
-
- $data['nd_reagent']['table']['group'] = t('Chado ND Reagent');
-
- $data['nd_reagent']['table']['base'] = array(
- 'field' => 'nd_reagent_id',
- 'title' => t('Chado Natural Diversity Reagent'),
- 'help' => t('Reagents used in Natural Diversity Experiments.'),
- );
- if($database){
- $data['nd_reagent']['table']['base']['database'] = $database;
- }
-
-
-
-
- $data['nd_reagent']['nd_reagent_id'] = array(
- 'title' => t('ND Reagent Primary Key'),
- 'help' => t('A unique index for every ND Reagent.'),
- 'field' => array(
- 'handler' => 'views_handler_field_numeric',
- 'click sortable' => TRUE,
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_numeric',
- ),
- );
-
- $data['nd_reagent']['name'] = array(
- 'title' => t('Name'),
- 'help' => t('The name of the reagent.'),
- 'field' => array(
- 'handler' => 'views_handler_field',
- 'click sortable' => TRUE,
- ),
- 'sort' => array(
- 'handler' => 'views_handler_sort',
- ),
- 'filter' => array(
- 'handler' => 'views_handler_filter_string',
- ),
- 'argument' => array(
- 'handler' => 'views_handler_argument_string',
- ),
- );
-
-
-
-
-
-
-
-
-
- $data['nd_reagent']['all_relationships'] = array(
- 'title' => t('All Reagent Relationships'),
- 'help' => t('Relationships including the current reagent.'),
- 'field' => array(
- 'title' => t('All Relationships'),
- 'help' => t('Display all relationships including the current reagent.'),
- 'handler' => 'views_handler_field_chado_relationship_all',
- ),
- );
-
-
-
- $data['nd_reagent']['relationships'] = array(
- 'title' => t('ND Reagent Relationships'),
- 'help' => t('Relationships including the current reagent.'),
- 'field' => array(
- 'title' => t('Relationships'),
- 'help' => t('Display a given type of relationships including the current reagent.'),
- 'handler' => 'views_handler_field_chado_relationship_by_type',
- ),
- );
- return $data;
- }
|