function tripal_library_theme
2.x tripal_library.module | tripal_library_theme($existing, $type, $theme, $path) |
3.x tripal_library.module | tripal_library_theme( |
1.x tripal_library.module | tripal_library_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
- tripal_library/
tripal_library.module, line 168 - Integrates the Chado Library module with Drupal Nodes & Views
Code
function tripal_library_theme($existing, $type, $theme, $path) {
$core_path = drupal_get_path('module', 'tripal_core');
$items = array(
'node__chado_library' => array(
'template' => 'node--chado-generic',
'render element' => 'node',
'base hook' => 'node',
'path' => "$core_path/theme/templates",
),
// tripal_library templates
'tripal_library_base' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_base',
'path' => "$path/theme/templates",
),
'tripal_library_features' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_features',
'path' => "$path/theme/templates",
),
'tripal_library_properties' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_properties',
'path' => "$path/theme/templates",
),
'tripal_library_publications' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_publications',
'path' => "$path/theme/templates",
),
'tripal_library_references' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_references',
'path' => "$path/theme/templates",
),
'tripal_library_synonyms' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_synonyms',
'path' => "$path/theme/templates",
),
'tripal_library_terms' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_terms',
'path' => "$path/theme/templates",
),
'tripal_library_help' => array(
'template' => 'tripal_library_help',
'variables' => array(NULL),
'path' => "$path/theme/templates",
),
// teaser
'tripal_library_teaser' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_library_teaser',
'path' => "$path/theme/templates",
),
// tripal_organism templates
'tripal_organism_libraries' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_organism_libraries',
'path' => "$path/theme/templates",
),
// tripal_feature templates
'tripal_feature_libraries' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_feature_libraries',
'path' => "$path/theme/templates",
),
);
return $items;
}