|
@@ -1,6 +1,6 @@
|
|
|
<?php
|
|
|
|
|
|
-require_once "parseInterpro.inc";
|
|
|
+require_once "includes/parseInterpro.inc";
|
|
|
|
|
|
/*******************************************************************************
|
|
|
* Tripal Interpro lets users show/hide iprscan results associated with a tripal
|
|
@@ -9,8 +9,8 @@ require_once "parseInterpro.inc";
|
|
|
function tripal_analysis_interpro_init(){
|
|
|
|
|
|
// Add javascript and style sheet
|
|
|
- drupal_add_css(drupal_get_path('module', 'tripal_analysis_interpro').'/theme/css/tripal_analysis_interpro.css');
|
|
|
- drupal_add_js( drupal_get_path('module', 'tripal_analysis_interpro').'/theme/js/tripal_analysis_interpro.js');
|
|
|
+ drupal_add_css(drupal_get_path('module', 'tripal_analysis_interpro').'/css/tripal_analysis_interpro.css');
|
|
|
+ drupal_add_js( drupal_get_path('module', 'tripal_analysis_interpro').'/js/tripal_analysis_interpro.js');
|
|
|
}
|
|
|
/*******************************************************************************
|
|
|
* Provide information to drupal about the node types that we're creating
|
|
@@ -381,6 +381,16 @@ function tripal_analysis_interpro_nodeapi(&$node, $op, $teaser, $page) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * Implements hook_theme_registry_alter().
|
|
|
+ */
|
|
|
+function tripal_analysis_interpro_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_interpro')));
|
|
|
+}
|
|
|
+
|
|
|
/************************************************************************
|
|
|
* 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
|
|
@@ -393,11 +403,11 @@ function tripal_analysis_interpro_theme () {
|
|
|
),
|
|
|
'tripal_feature_interpro_results' => array (
|
|
|
'arguments' => array('node'=> null),
|
|
|
- 'template' => 'tripal_feature_interpro_results',
|
|
|
+ 'template' => 'templates/tripal_features/tripal_feature_interpro_results',
|
|
|
),
|
|
|
'tripal_analysis_interpro_base' => array (
|
|
|
'arguments' => array('node'=> null),
|
|
|
- 'template' => 'tripal_analysis_interpro_base',
|
|
|
+ 'template' => 'templates/tripal_analysis_interpro/tripal_analysis_interpro_base',
|
|
|
)
|
|
|
);
|
|
|
}
|