function tripal_contact_theme

2.x tripal_contact.module tripal_contact_theme($existing, $type, $theme, $path)
3.x tripal_contact.module tripal_contact_theme($existing, $type, $theme, $path)
1.x tripal_contact.module tripal_contact_theme()

Implements hook_theme(). Register themeing functions for this module

Return value

An array of themeing functions to register

Related topics

File

tripal_contact/tripal_contact.module, line 139
Functions related to general module functionality.

Code

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

  $items = array(
    'node__chado_contact' => array(
      'template' => 'node--chado-generic',
      'render element' => 'node',
      'base hook' => 'node',
      'path' => "$core_path/theme/templates",
    ),
    'tripal_contact_base' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_contact_base',
      'path' => "$path/theme/templates",
    ),
    'tripal_contact_properties' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_contact_properties',
      'path' => "$path/theme/templates",
    ),
    'tripal_contact_relationships' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_contact_relationships',
      'path' => "$path/theme/templates",
    ),
    'tripal_contact_publications' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_contact_publications',
      'path' => "$path/theme/templates",
    ),
    'tripal_contact_help' => array(
      'template' => 'tripal_contact_help',
      'variables' => array(NULL),
      'path' => "$path/theme/templates",
    ),
    'tripal_contact_teaser' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_contact_teaser',
      'path' => "$path/theme/templates",
    ),
  );
  return $items;
}