function tripal_organism_theme

2.x tripal_organism.module tripal_organism_theme($existing, $type, $theme, $path)
3.x tripal_organism.module tripal_organism_theme($existing, $type, $theme, $path)
1.x tripal_organism.module tripal_organism_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_organism/tripal_organism.module, line 146
Integrates the Chado Organism module with Drupal Nodes & Views

Code

function tripal_organism_theme($existing, $type, $theme, $path) {
  $core_path = drupal_get_path('module', 'tripal_core');

  $items = array(
    'node__chado_organism' => array(
      'template' => 'node--chado-generic',
      'render element' => 'node',
      'base hook' => 'node',
      'path' => "$core_path/theme/templates",
    ),
    'tripal_organism_base' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_organism_base',
      'path' => "$path/theme/templates",
    ),
    'tripal_organism_properties' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_organism_properties',
      'path' => "$path/theme/templates",
    ),
    'tripal_organism_references' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_organism_references',
      'path' => "$path/theme/templates",
    ),
    'tripal_organism_teaser' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_organism_teaser',
      'path' => "$path/theme/templates",
    ),
    'tripal_organism_help' => array(
      'template' => 'tripal_organism_help',
      'variables' => array(NULL),
      'path' => "$path/theme/templates",
    ),
  );
  return $items;
}