Browse Source

trying preprocess function

alexgl 13 years ago
parent
commit
df8d81afbd
1 changed files with 11 additions and 1 deletions
  1. 11 1
      extensions/tripal_analysis_blast/tripal_analysis_blast.module

+ 11 - 1
extensions/tripal_analysis_blast/tripal_analysis_blast.module

@@ -131,6 +131,16 @@ function tripal_analysis_blast_nodeapi(&$node, $op, $teaser, $page) {
          break;
 	}
 }
+
+/**
+ * Implements hook_theme_registry_alter().
+ */
+function tripal_analysis_blast__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_blast')));
+}
+
 /************************************************************************
  *  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
@@ -143,7 +153,7 @@ function tripal_analysis_blast_theme () {
          'arguments' => array('node'),
 		),
 		'node__chado_analysis_blast' => array(
-		'template' => 'node--chado-analysis-blast.tpl.php',
+		'template' => 'node--chado-analysis-blast',
 		'arguments' => array('node'=>null),
 		),
 		'tripal_feature_blast_results' => array(