function tripal_pub_theme

2.x tripal_pub.module tripal_pub_theme($existing, $type, $theme, $path)
3.x tripal_pub.module tripal_pub_theme($existing, $type, $theme, $path)
1.x tripal_pub.module tripal_pub_theme()

Implements hook_theme(). Register themeing functions for this module

Return value

An array of themeing functions to register

Related topics

File

legacy/tripal_pub/tripal_pub.module, line 129
Basic functionality of the pub module

Code

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

  $items = array(
    'node__chado_pub' => array(
      'template' => 'node--chado-generic',
      'render element' => 'node',
      'base hook' => 'node',
      'path' => "$core_path/theme/templates",
    ),
    // node templates
    'tripal_pub_authors' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_authors',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_base' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_base',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_featuremaps' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_featuremaps',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_features' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_features',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_libraries' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_libraries',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_projects' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_projects',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_properties' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_properties',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_references' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_references',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_relationships' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_relationships',
      'path' => "$path/theme/templates",
    ),
    'tripal_pub_stocks' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_stocks',
      'path' => "$path/theme/templates",
    ),

    // instructions page for the pub module
    'tripal_pub_help' => array(
      'variables' => array(NULL),
      'template' => 'tripal_pub_help',
      'path' => "$path/theme/templates",
    ),



    // teaser
    'tripal_pub_teaser' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_pub_teaser',
      'path' => "$path/theme/templates",
    ),
  );

  return $items;
}