Skip to content

Commit

Permalink
Fixed node title
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhuaicheng committed Jun 29, 2018
1 parent 424662c commit fb816af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mainlab_tripal.module
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,12 @@ function mainlab_tripal_node_view_alter(&$build) {
// Hide default templates in this function

$node = $build['#node'];

// Make sure Title doesn't start with a comma for Tripal 3
if ($build['#entity_type'] == 'TripalEntity') {
$node->title = trim($node->title, ', ');
}

$enabled_themes = variable_get('mainlab_tripal_enabled_themes', array());

// Organism
Expand Down

0 comments on commit fb816af

Please sign in to comment.