Project

General

Profile

« Previous | Next » 

Revision 5f5e44b2

Added by Andreas Kohlbecker over 10 years ago

removing all implemetation of the theme hooks theme_get_nameRenderTemplate() and theme_get_partDefinition

View differences:

7.x/themes/palmweb_2/template.php
559 559
  return $output;
560 560
}
561 561

  
562
/**
563
 *  @deprecated define name render templates via the layout settings
564
 */
565
function palmweb_2_get_partDefinition($variables) {
566

  
567
  return array(
568
    'BotanicalName'=> array(
569
        'namePart' => array('name' => TRUE, 'authors' => TRUE),
570
        'authorshipPart' => array(),
571
        'referencePart' => array('reference' => TRUE, 'microreference' => TRUE),
572
        'statusPart' => array('status' => TRUE),
573
        'descriptionPart' => array('description' => TRUE),
574
    ),
575
    'ZoologicalName' => array(
576
          'namePart' => array('name' => TRUE),
577
          'referencePart' => array('authors' => TRUE),
578
          'microreferencePart' => array('microreference' => TRUE),
579
          'statusPart' => array('status' => TRUE),
580
          'descriptionPart' => array('description' => TRUE),
581
      ),
582
    '#DEFAULT' => array(
583
        'namePart' => array(
584
            'name' => TRUE,
585
            'authors' => TRUE
586
        ),
587
        'referencePart' => array(
588
            'reference' => TRUE
589
        ),
590
        'microreferencePart' => array(
591
            'microreference' => TRUE,
592
        ),
593
        'statusPart' => array(
594
            'status' => TRUE,
595
        ),
596
        'descriptionPart' => array(
597
            'description' => TRUE,
598
        ),
599
      )
600
  );
601
}
602

  
603
/**
604
 *  @deprecated define name render templates via the layout settings
605
 */
606
function palmweb_2_get_nameRenderTemplate($variables){
607
  return array(
608
    'acceptedFor' =>
609
      $template = array(
610
        'namePart' => array('#uri'=>TRUE),
611
      ),
612
    'typedesignations' => array(
613
        'namePart' => array('#uri'=>TRUE),
614
        'referencePart' => TRUE,
615
      ),
616
    'taxon_page_title,list_of_taxa,taxon_page_synonymy,related_taxon,polytomousKey' => array(
617
        'namePart' => array('#uri'=>TRUE),
618
        'referencePart' => TRUE,
619
        'descriptionPart' => TRUE,
620
        'statusPart' => TRUE,
621
      ),
622
    '#DEFAULT' => array(
623
        'namePart' => array('#uri'=>TRUE),
624
        'referencePart' => TRUE,
625
        'descriptionPart' => TRUE,
626
        'statusPart' => TRUE,
627
     )
628
  );
629
}
630

  
631 562
/**
632 563
 * @todo Please document this function.
633 564
 * @see http://drupal.org/node/1354

Also available in: Unified diff