function tripal_phenotype_node_view
2.x tripal_phenotype.module | tripal_phenotype_node_view($node, $view_mode, $langcode) |
3.x tripal_phenotype.module | tripal_phenotype_node_view($node, $view_mode, $langcode) |
Implements hook_node_view().
Related topics
File
- tripal_phenotype/
tripal_phenotype.module, line 171 - Basic functionality for the phenotype module
Code
function tripal_phenotype_node_view($node, $view_mode, $langcode) {
switch ($node->type) {
case 'chado_feature':
// Show feature browser and counts
if ($view_mode == 'full') {
$node->content['tripal_feature_phenotypes'] = array(
'#theme' => 'tripal_feature_phenotypes',
'#node' => $node,
'#tripal_toc_id' => 'phenotypes',
'#tripal_toc_title' => 'Phenotypes',
);
}
break;
}
}