Browse Source

node tpl.php related changes

alexgl 13 years ago
parent
commit
76e3943179

+ 9 - 0
extensions/tripal_analysis_kegg/tripal_analysis_kegg.module

@@ -875,6 +875,15 @@ function tripal_analysis_kegg_nodeapi(&$node, $op, $teaser, $page) {
    }
 }
 
+/**
+ * Implements hook_theme_registry_alter().
+ */
+function tripal_analysis_kegg_theme_registry_alter(&$info) {
+  // Inject our module into the node theme registry as being an available theme
+  // path so that we can override the node template for our content type.
+  array_splice($info['node']['theme paths'], 1, 0, array(drupal_get_path('module', 'tripal_analysis_kegg')));
+}
+
 /************************************************************************
  *  We need to let drupal know about our theme functions and their arguments.
  *  We create theme functions to allow users of the module to customize the

+ 0 - 0
extensions/tripal_analysis_unigene/theme/node-chado_analysis_unigene.tpl.php → extensions/tripal_analysis_unigene/node-chado_analysis_unigene.tpl.php


+ 10 - 0
extensions/tripal_analysis_unigene/tripal_analysis_unigene.module

@@ -430,6 +430,16 @@ function tripal_analysis_unigene_nodeapi(&$node, $op, $teaser, $page) {
       break;   
    }
 }
+
+/**
+ * Implements hook_theme_registry_alter().
+ */
+function tripal_analysis_unigene_theme_registry_alter(&$info) {
+  // Inject our module into the node theme registry as being an available theme
+  // path so that we can override the node template for our content type.
+  array_splice($info['node']['theme paths'], 1, 0, array(drupal_get_path('module', 'tripal_analysis_unigene')));
+}
+
 /************************************************************************
  *  We need to let drupal know about our theme functions and their arguments.
  *  We create theme functions to allow users of the module to customize the