function tripal_featuremap_theme
2.x tripal_featuremap.module | tripal_featuremap_theme($existing, $type, $theme, $path) |
3.x tripal_featuremap.module | tripal_featuremap_theme( |
1.x tripal_featuremap.module | tripal_featuremap_theme() |
Implements hook_theme().
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 look and feel of the output generated in this module
Related topics
File
- legacy/
tripal_featuremap/ tripal_featuremap.module, line 197 - Integrates the Chado Map module with Drupal Nodes & Views
Code
function tripal_featuremap_theme($existing, $type, $theme, $path) {
$core_path = drupal_get_path('module', 'tripal_core');
$items = array(
'node__chado_featuremap' => array(
'template' => 'node--chado-generic',
'render element' => 'node',
'base hook' => 'node',
'path' => "$core_path/theme/templates",
),
'tripal_featuremap_base' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_featuremap_base',
'path' => "$path/theme/templates",
),
'tripal_featuremap_properties' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_featuremap_properties',
'path' => "$path/theme/templates",
),
'tripal_featuremap_featurepos' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_featuremap_featurepos',
'path' => "$path/theme/templates",
),
'tripal_featuremap_publication' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_featuremap_publication',
'path' => "$path/theme/templates",
),
'tripal_featuremap_references' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_featuremap_references',
'path' => "$path/theme/templates",
),
'tripal_featuremap_help' => array(
'template' => 'tripal_featuremap_help',
'variables' => array(NULL),
'path' => "$path/theme/templates",
),
'tripal_featuremap_teaser' => array(
'template' => 'tripal_featuremap_teaser',
'variables' => array(NULL),
'path' => "$path/theme/templates",
),
// templates for the chado_feature nodes:
'tripal_feature_featurepos' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_feature_featurepos',
'path' => "$path/theme/templates",
),
);
return $items;
}