function tripal_project_theme

2.x tripal_project.module tripal_project_theme($existing, $type, $theme, $path)
3.x tripal_project.module tripal_project_theme($existing, $type, $theme, $path)
1.x tripal_project.module tripal_project_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 158
This file contains the basic functions needed for this drupal module. The drupal tripal_project module maps directly to the chado general module.

Code

function tripal_project_theme() {
  return array(
    'tripal_project_base' => array(
      'arguments' => array('node' => NULL),
      'template' => 'tripal_project_base',
    ),
    'tripal_project_contact' => array(
      'arguments' => array('node' => NULL),
      'template' => 'tripal_project_contact',
    ),
    'tripal_project_publications' => array(
      'arguments' => array('node' => NULL),
      'template' => 'tripal_project_publications',
    ),
    'tripal_project_relationships' => array(
      'arguments' => array('node' => NULL),
      'template' => 'tripal_project_relationships',
    ),
    'tripal_project_properties' => array(
      'arguments' => array('node' => NULL),
      'template' => 'tripal_project_properties',
    ),
    'tripal_project_admin' => array(
      'template' => 'tripal_project_admin',
      'arguments' => array(NULL),
      'path' => drupal_get_path('module', 'tripal_project') . '/theme'
    ),
  );
}