Project

General

Profile

Revision 4feeabc7

ID4feeabc7eb75a09ab5a445413a4b6a3505c49e37
Parent 4b3be949
Child ed0183ea

Added by Andreas Kohlbecker almost 4 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

Add picture from clipboard (Maximum size: 40 MB)