function tripal_stock_theme

2.x tripal_stock.module tripal_stock_theme($existing, $type, $theme, $path)
3.x tripal_stock.module tripal_stock_theme($existing, $type, $theme, $path)
1.x tripal_stock.module tripal_stock_theme()

Implements hook_theme(). Register themeing functions for this module

Return value

An array of themeing functions to register

Related topics

File

tripal_stock/tripal_stock.module, line 267
Basic functionality for stocks

Code

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

  $items = array(

    // tripal_stock templates
    'node__chado_stock' => array(
      'template' => 'node--chado-generic',
      'render element' => 'node',
      'base hook' => 'node',
      'path' => "$core_path/theme/templates",
    ),
    'tripal_stock_base' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_base',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_properties' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_properties',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_publications' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_publications',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_references' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_references',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_relationships' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_relationships',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_synonyms' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_synonyms',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_collections' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_collections',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_collections' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_collections',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_phenotypes' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_phenotypes',
      'path' => "$path/theme/templates",
    ),
    'tripal_stock_locations' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_locations',
      'path' => "$path/theme/templates",
    ),
    // tripal_organism templates
    'tripal_organism_stocks' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_organism_stocks',
      'path' => "$path/theme/templates",
    ),
    // help template
    'tripal_stock_help' => array(
      'template' => 'tripal_stock_help',
      'variables' => array(NULL),
      'path' => "$path/theme/templates",
    ),
    // themed teaser
    'tripal_stock_teaser' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_stock_teaser',
      'path' => "$path/theme/templates",
    ),
  );
  return $items;
}