Project

General

Profile

« Previous | Next » 

Revision d071bed7

Added by Andreas Kohlbecker almost 11 years ago

removing out commented code and adding missing query parameter to synonym links

View differences:

7.x/modules/cdm_dataportal/cdm_dataportal.module
1628 1628
 */
1629 1629
function uri_to_synonym($synonymUuid, $acceptedUuid) {
1630 1630
  $acceptedPath = path_to_taxon($acceptedUuid, "synonymy");
1631
  return url($acceptedPath, array('query' => array('highlite' => $synonymUuid)));
1631
  return url($acceptedPath, array(
1632
      'query' => array(
1633
        // highlite the synony in the synonymy
1634
        'highlite' => $synonymUuid,
1635
        // the taxon page is refered from a synonym and the synonym can optionally be named in the page title
1636
        // see theme_taxon_page_title()
1637
        'acceptedFor' => $synonymUuid
1638
      )
1639
  ));
1640

  
1632 1641
}
1633 1642

  
1634 1643
/**

Also available in: Unified diff