function tripal_phenotype_theme

2.x tripal_phenotype.module tripal_phenotype_theme($existing, $type, $theme, $path)
3.x tripal_phenotype.module tripal_phenotype_theme($existing, $type, $theme, $path)

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_phenotype/tripal_phenotype.module, line 98
Basic functionality for the phenotype module

Code

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

  $items = array(
    'tripal_feature_phenotypes' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_phenotypes',
      'path' => "$path/theme/templates",
    ),
    'tripal_phenotype_help' => array(
      'template' => 'tripal_phenotype_help',
      'variables' => array(NULL),
      'path' => "$path/theme/templates",
    ),
  );
  return $items;
}