Browse Source

Renamed admin.php to tripal_feature.admin.inc

spficklin 14 years ago
parent
commit
536b013486

+ 0 - 0
tripal_feature/admin.php → tripal_feature/tripal_feature.admin.inc


+ 1 - 1
tripal_feature/tripal_feature.module

@@ -1,6 +1,6 @@
 <?php
 
-require_once "admin.php";
+require_once "tripal_feature.admin.inc";
 require_once "syncFeatures.php";
 require_once "indexFeatures.php";
 require_once "fasta_loader.php";

+ 4 - 0
tripal_feature/tripal_feature.views.inc

@@ -22,6 +22,7 @@
  */
 require_once('views/feature.views.inc');
 require_once('views/chado_feature.views.inc');
+
 function tripal_feature_views_data()  {
   $data = array();
   
@@ -51,6 +52,9 @@ function tripal_feature_views_handlers() {
      'views_handler_field_readable_date' => array(
        'parent' => 'views_handler_field',
      ),
+     'views_handler_field_residues' => array(
+       'parent' => 'views_handler_field',
+     ),
    ),
  );
 }

+ 11 - 10
tripal_feature/views/feature.views.inc

@@ -37,7 +37,7 @@
 	global $db_url;
 	$data = array();
 	
-	// if the chado database is not local to the drupal database
+  // if the chado database is not local to the drupal database
   // then we need to set the database name.  This should always
   // be 'chado'.
   if(is_array($db_url) and array_key_exists('chado',$db_url)){
@@ -45,13 +45,14 @@
   }
 
 	
-  // Basic table definition
-  $data['feature']['table']['group'] = 'Chado Feature';
-  $data['feature']['table']['base'] = array(
-    'field' => 'feature_id',
-    'title' => 'Chado Features',
-    'help' => 'Features are Sequence Data Records in Chado.',
-  );
+   // Basic table definition
+   $data['feature']['table']['group'] = 'Chado Feature';
+   $data['feature']['table']['base'] = array(
+     'field' => 'feature_id',
+     'title' => 'Chado Features',
+     'help' => 'Features are Sequence Data Records in Chado.',
+   );
+
 	if($database){
 		$data['feature']['table']['database'] = $database;
 	}
@@ -147,7 +148,7 @@
     'title' => 'Residues',
     'help' => 'The sequence of a feature.',
     'field' => array(
-      'handler' => 'views_handler_field',
+      'handler' => 'views_handler_field_residues',
       'click sortable' => TRUE,
     ),
     'sort' => array(
@@ -236,4 +237,4 @@
   );
   
   return $data;
- }
+ }

+ 1 - 1
tripal_feature/views/handlers/views_handler_field_computed_feature_nid.inc

@@ -14,4 +14,4 @@ class views_handler_field_computed_feature_nid extends views_handler_field_numer
 	function render($values) { 
 		return $values->feature_nid;
 	}
-} 
+}