Project

General

Profile

« Previous | Next » 

Revision 4feeabc7

Added by Andreas Kohlbecker over 7 years ago

fix #4490 taxon page tab labels configurable and fixing translation issue with menu items

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.page.theme
683 683
   * (wrapping the content in the cdm_dataportal.node becomes obsolete then).
684 684
   */
685 685
  return '<div id="identificationKey">' . $out . '</div>';
686
}
687

  
688
/**
689
 * Returns HTML for taxon page tabs.
690
 *
691
 * Allows theming of the taxon page tabs.
692
 *
693
 * @param array $variables
694
 *   An associative array containing:
695
 *   - tabname
696
 *
697
 * @ingroup themeable
698
 */
699
function theme_cdm_taxonpage_tab($variables) {
700
  $tabname = $variables['tabname'];
701
  // TODO replace by using translations or theme the menue tabs itself instead?
702
  switch ($tabname) {
703
    default:
704
      return t('@tabname', array('@tabname' => $tabname));
705
  }
706
}
686
}

Also available in: Unified diff