'primary_id', 'title' => t('Chado ND Reagent Property'), 'help' => t('Properties of Natural Diversity Reagents.'), 'group' => t('Chado ND Reagent Property'), ); if($database){ $data['nd_reagentprop']['table']['database'] = $database; } //Relationship Definitions--------------------------------- //Join: nd_reagentprop => nd_reagent $data['nd_reagentprop']['table']['join']['nd_reagent'] = array( 'left_field' => 'nd_reagent_id', 'field' => 'nd_reagent_id', ); //Table Field Definitions---------------------------------- //Field: nd_reagentprop_id (primary key) $data['nd_reagentprop']['nd_reagentprop_id'] = array( 'title' => t('ND Reagent Propery Primary Key'), 'help' => t('A unique index for every ND Reagent Property.'), 'field' => array( 'handler' => 'views_handler_field_numeric', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort', ), 'filter' => array( 'handler' => 'views_handler_filter_numeric', ), ); //Field: value (varchar 255) $data['nd_reagentprop']['value'] = array( 'title' => t('Property Value'), 'help' => t('The value of a given property.'), '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', ), ); //Field: rank (int) $data['nd_reagentprop']['rank'] = array( 'title' => t('Property Rank'), 'help' => t('The rank of a given propery.'), 'field' => array( 'handler' => 'views_handler_field_numeric', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort', ), 'filter' => array( 'handler' => 'views_handler_filter_numeric', ), ); //Calculated Field: type/cvterm name (varchar 255) $data['nd_reagentprop']['nd_reagentprop_cvterm_name'] = array( 'title' => t('Property Type'), 'help' => t('The type of property.'), 'field' => array( 'handler' => 'views_handler_field_cvterm_name', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort', ), 'filter' => array( 'handler' => 'views_handler_filter_string', ), 'argument' => array( 'handler' => 'views_handler_argument_string', ), ); return $data; }