function tripal_feature_theme

2.x tripal_feature.module tripal_feature_theme($existing, $type, $theme, $path)
3.x tripal_feature.module tripal_feature_theme($existing, $type, $theme, $path)
1.x tripal_feature.module tripal_feature_theme()

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_feature/tripal_feature.module, line 248
Basic functionality for the tripal module

Code

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

  // Feature Node Page Templates.
  $items = array(
    'node__chado_feature' => array(
      'template' => 'node--chado-generic',
      'render element' => 'node',
      'base hook' => 'node',
      'path' => "$core_path/theme/templates",
    ),
    'tripal_feature_alignments' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_alignments',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_analyses' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_analyses',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_base' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_base',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_sequence' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_sequence',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_proteins' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_proteins',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_publications' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_publications',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_synonyms' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_synonyms',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_references' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_references',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_properties' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_properties',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_terms' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_terms',
      'path' => "$path/theme/templates",
    ),
    'tripal_feature_relationships' => array(
      'variables' => array('node' => NULL),
      'template' => 'tripal_feature_relationships',
      'path' => "$path/theme/templates",
    ),
  );

  // Feature Node Teaser
  $items['tripal_feature_teaser'] = array(
    'variables' => array('node' => NULL),
    'template' => 'tripal_feature_teaser',
    'path' => "$path/theme/templates",
  );

  // Templates for other node pages.
  // Organism Feature Browser.
  $items['tripal_organism_feature_browser'] = array(
    'variables' => array('node' => NULL),
    'template' => 'tripal_organism_feature_browser',
    'path' => "$path/theme/templates",
  );
  $items['tripal_organism_feature_counts'] = array(
    'variables' => array('node' => NULL),
    'template' => 'tripal_organism_feature_counts',
    'path' => "$path/theme/templates",
  );

  // Administrative Help Template.
  $items['tripal_feature_help'] = array(
    'template' => 'tripal_feature_help',
    'variables' => array(NULL),
    'path' => "$path/theme/templates"
  );

  // Themed Forms
  $items['tripal_feature_seq_extract_form'] = array(
    'render element' => 'form',
  );

  // D3 Charts.
  // Feature Type/Organism Stacked Bar Chart.
  $items['tripal_feature_bar_chart_type_organism_summary'] = array(
    'template' => 'tripal_feature_bar_chart_type_organism_summary',
    'variables' => array(NULL),
    'path' => "$path/theme/templates"
  );

  return $items;
}