Browse Source

Added theme for stock genotype template

spficklin 12 years ago
parent
commit
aab033315b
1 changed files with 12 additions and 1 deletions
  1. 12 1
      tripal_stock/tripal_stock.module

+ 12 - 1
tripal_stock/tripal_stock.module

@@ -281,7 +281,10 @@ function tripal_stock_theme() {
        'arguments' => array('node' => NULL),
        'template' => 'tripal_stock_phenotypes',
     ),
-    
+    'tripal_stock_genotypes' => array(
+       'arguments' => array('node' => NULL),
+       'template' => 'tripal_stock_genotypes',
+    ),
     
     'tripal_organism_stocks' => array(
        'arguments' => array('node' => NULL),
@@ -882,6 +885,9 @@ function tripal_stock_block($op = 'list', $delta = 0, $edit=array()) {
       $blocks['phenotypes']['info'] = t('Tripal Stock Phenotypes');
       $blocks['phenotypes']['cache'] = BLOCK_NO_CACHE;
       
+      $blocks['genotypes']['info'] = t('Tripal Stock Genotypes');
+      $blocks['genotypes']['cache'] = BLOCK_NO_CACHE;
+      
       $blocks['orgstocks']['info'] = t('Tripal Organism Stocks');
       $blocks['orgstocks']['cache'] = BLOCK_NO_CACHE;
       
@@ -931,6 +937,11 @@ function tripal_stock_block($op = 'list', $delta = 0, $edit=array()) {
           $block['content'] = theme('tripal_stock_phenotypes', $node);
           break;
           
+        case 'genotypes':
+          $block['subject'] = t('Stock Genotypes');
+          $block['content'] = theme('tripal_stock_genotypes', $node);
+          break;
+          
         case 'orgstocks':
           $block['subject'] = t('Organism Stocks');
           $block['content'] = theme('tripal_organism_stocks', $node);