function tripal_natural_diversity_theme
2.x tripal_natural_diversity.module | tripal_natural_diversity_theme($existing, $type, $theme, $path) |
3.x tripal_natural_diversity.module | tripal_natural_diversity_theme( |
1.x tripal_natural_diversity.module | tripal_natural_diversity_theme() |
Implements hook_theme().
Related topics
File
- legacy/
tripal_natural_diversity/ tripal_natural_diversity.module, line 100 - Basic function for the natural diversity module
Code
function tripal_natural_diversity_theme($existing, $type, $theme, $path) {
$core_path = drupal_get_path('module', 'tripal_core');
$items = array(
// tripal_feature templates
'tripal_feature_nd_genotypes' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_feature_nd_genotypes',
'path' => "$path/theme/templates",
),
// tripal_stock templates
'tripal_stock_nd_genotypes' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_stock_nd_genotypes',
'path' => "$path/theme/templates",
),
'tripal_stock_nd_phenotypes' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_stock_nd_phenotypes',
'path' => "$path/theme/templates",
),
'tripal_natural_diversity_help' => array(
'template' => 'tripal_natural_diversity_help',
'variables' => array(NULL),
'path' => "$path/theme/templates",
),
);
return $items;
}