Project

General

Profile

« Previous | Next » 

Revision 8202a2c0

Added by Andreas Kohlbecker almost 4 years ago

ref #8543 option to block footnote list key to avoid foonote keys in odd places like warnings

View differences:

modules/cdm_dataportal/cdm_dataportal.module
1721 1721
  if (!$taxon_in_current_classification) {
1722 1722
    $classifications = get_classifications_for_taxon($taxon);
1723 1723
    RenderHints::pushToRenderStack('not_in_current_classification');
1724
    RenderHints::setFootnoteListKey('not_in_current_classification');
1725
    FootnoteManager::blockFootnotesFor('not_in_current_classification');
1724 1726
    $taxon_name_markup = render_taxon_or_name($taxon);
1727
    FootnoteManager::unblockFootnotesFor('not_in_current_classification');
1728
    RenderHints::clearFootnoteListKey();
1725 1729

  
1726 1730
    if (count($classifications) == 0) {
1727 1731
      drupal_set_message(t('This concept of the taxon !taxonname is not contained as an accepted taxon in the currently chosen classification.',

Also available in: Unified diff