function tripal_project_theme
2.x tripal_project.module | tripal_project_theme($existing, $type, $theme, $path) |
3.x tripal_project.module | tripal_project_theme( |
1.x tripal_project.module | tripal_project_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_project/
tripal_project.module, line 173 - Integrates the Chado Project tables with Drupal Nodes & Views
Code
function tripal_project_theme($existing, $type, $theme, $path) {
$core_path = drupal_get_path('module', 'tripal_core');
$items = array(
'node__chado_project' => array(
'template' => 'node--chado-generic',
'render element' => 'node',
'base hook' => 'node',
'path' => "$core_path/theme/templates",
),
'tripal_project_base' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_project_base',
'path' => "$path/theme/templates",
),
'tripal_project_contact' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_project_contact',
'path' => "$path/theme/templates",
),
'tripal_project_properties' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_project_properties',
'path' => "$path/theme/templates",
),
'tripal_project_publications' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_project_publications',
'path' => "$path/theme/templates",
),
'tripal_project_relationships' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_project_relationships',
'path' => "$path/theme/templates",
),
'tripal_project_teaser' => array(
'variables' => array('node' => NULL),
'template' => 'tripal_project_teaser',
'path' => "$path/theme/templates",
),
'tripal_project_help' => array(
'variables' => array(NULL),
'template' => 'tripal_project_help',
'path' => "$path/theme/templates",
),
);
return $items;
}