Project

General

Profile

« Previous | Next » 

Revision 8cf9238f

Added by Andreas Kohlbecker over 9 years ago

cleaning up unused and old code related to #3050 (unused variable in cdm_taxon_page_title)

View differences:

7.x/themes/palmweb_2/template.php
749 749
  }
750 750
}
751 751

  
752
/**
753
 * @todo Please document this function.
754
 * @see http://drupal.org/node/1354
755
 */
756
function palmweb_2_cdm_taxon_page_title($variables){
757
  $taxon = $variables['taxon'];
758
  $uuid = $variables['uuid'];
759
  $synonym_uuid = $variables['synonym_uuid'];
760

  
761
  RenderHints::pushToRenderStack('taxon_page_title');
762
  $synonym = cdm_ws_get(CDM_WS_PORTAL_TAXON, $synonym_uuid);
763
  $referenceUri = '';
764
  if (isset($taxon->name->nomenclaturalReference)) {
765
    $referenceUri = url(path_to_reference($taxon->name->nomenclaturalReference->uuid));
766
  }
767

  
768
  $out = theme('cdm_taxonName', array(
769
    'taxonName' => $taxon->name,
770
    'nameLink' => NULL,
771
    'refenceLink' => $referenceUri,
772
    'show_annotations' => FALSE,
773
  ));
774

  
775
  RenderHints::popFromRenderStack();
776
  if (isset($synonym->name->titleCache)) {
777
  $result = '<span class = "synonym_title">' . $synonym->name->titleCache . ' is synonym of ' . '</span>' .
778
       '<span class="' . $taxon->class . '">' . $out . '</span>';
779
  }
780
  else {
781
    $result = '<span class="' . $taxon->class . '">' . $out . '</span>';
782
  }
783
  return $result;
784

  
785
}
786

  
787
// Comment @WA this theme function does not exist..
788
/*
789
function palmweb_2_cdm_uri_to_synonym($synonymUuid, $acceptedUuid, $pagePart = NULL) {
790
  $acceptedPath = path_to_taxon($acceptedUuid, TRUE);
791
  return url($acceptedPath . ($pagePart ? '/'.$pagePart : '') . '/'.$synonymUuid, 'highlite='.$synonymUuid);
792
  //return url($acceptedPath.($pagePart ? '/'.$pagePart : ''), 'highlite='.$synonymUuid, $synonymUuid."/$synonymUuid");
793
  //return url("$acceptedPath/$synonymUuid".($pagePart ? '/'.$pagePart : ''), 'highlite='.$synonymUuid);
794
}
795
*/
796

  
797 752
/**
798 753
 * Implements hook_preprocess_HOOK() for theme_page().
799 754
 *

Also available in: Unified diff