function tripal_analysis_theme

2.x tripal_analysis.module tripal_analysis_theme($existing, $type, $theme, $path)
3.x tripal_analysis.module tripal_analysis_theme($existing, $type, $theme, $path)
1.x tripal_analysis.module tripal_analysis_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_analysis/tripal_analysis.module, line 179
Contains basic functionality for the analysis module.

Code

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

  $items = array(
    'node__chado_analysis' => array(
      'template' => 'node--chado-generic',
      'render element' => 'node',
      'base hook' => 'node',
      'path' => "$core_path/theme/templates",
    ),
    'tripal_analysis_base' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_analysis_base',
      'path' => "$path/theme/templates",
    ),
    'tripal_analysis_properties' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_analysis_properties',
      'path' => "$path/theme/templates",
    ),
    'tripal_analysis_teaser' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_analysis_teaser',
      'path' => "$path/theme/templates",
    ),
    'tripal_analysis_help' => array(
      'template' => 'tripal_analysis_help',
      'variables' => array(NULL),
      'path' => "$path/theme/templates",
    ),

    // tripal_feature theme
    'tripal_feature_analyses' => array(
      'template' => 'tripal_feature_analyses',
      'variables' => array('node' => NULL),
      'path' => "$path/theme/templates",
    ),

  );

  return $items;
}