Project

General

Profile

Download (5.37 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/**
3
 * @file
4
 * Only contains the hook_theme() implementation.
5
 *
6
 * @copyright
7
 *   (C) 2007-2012 EDIT
8
 *   European Distributed Institute of Taxonomy
9
 *   http://www.e-taxonomy.eu
10
 *
11
 *   The contents of this module are subject to the Mozilla
12
 *   Public License Version 1.1.
13
 * @see http://www.mozilla.org/MPL/MPL-1.1.html
14
 *
15
 * @author
16
 *   - Andreas Kohlbecker <a.kohlbecker@BGBM.org>
17
 */
18

    
19
/**
20
 * Implements hook_theme().
21
 *
22
 * Registering themes with a theme hook is needed since Drupal 6.
23
 *
24
 * @author W. Addink <w.addink@eti.uva.nl>
25
 */
26
function cdm_dataportal_theme() {
27
  return array(
28
    // Themes in help.php.
29
    'cdm_dataportal_admin_config_cdm_dataportal_general' => array('variables' => array()),
30
    'cdm_dataportal_admin_config_cdm_dataportal_geo' => array('variables' => array()),
31
    'cdm_dataportal_admin_config_cdm_dataportal_layout' => array('variables' => array()),
32
    'cdm_dataportal_admin_config_cdm_dataportal_cachesite' => array('variables' => array()),
33
    'cdm_dataportal_admin_config_more_help_link' => array('variables' => array()),
34

    
35
    // Themes in settings.php.
36
    'checkboxes_preferred' => array('render element' => 'element'),
37
    'radio_options_suffix' => array('render element' => 'element'),
38

    
39
    // Themes in cdm_dataportal.common.theme.
40
    'cdm_entities_annotations_as_footnotekeys' => array('variables' => array('cdmBase_list' => NULL, 'footnote_list_key' => NULL)),
41
    'cdm_annotation_content' => array('variables' => array('AnnotationTO' => NULL)),
42
    'cdm_list_of_annotations' => array('variables' => array('annotationElements' => NULL)),
43
    'cdm_footnote_key' => array('variables' => array(
44
        'footnoteKey' => NULL,
45
        'separator' => '',
46
        'highlightable' => TRUE,
47
        'separator_off' => FALSE,
48
    )),
49
    'cdm_footnote' => array('variables' => array('footnoteKey' => NULL, 'footnoteText' => NULL, 'enclosing_tag' => 'span')),
50
    'cdm_annotations' => array('variables' => array('annotations' => NULL, 'enclosingTag' => 'span')),
51
    'cdm_marker' => array('variables' => array('label' => NULL, 'attributes' => NULL)),
52
    'cdm_pager' => array('variables' => array('pager' => NULL, 'path' => NULL, 'parameters' => NULL)),
53
    'cdm_pager_link' => array('variables' => array(
54
        'text' => NULL,
55
        'linkIndex' => NULL,
56
        'pager' => NULL,
57
        'path' => NULL,
58
        'parameters' => array(),
59
        'attributes' => NULL,
60
    )),
61
    'cdm_print_button' => array('variables' => array()),
62

    
63
    // Themes in cdm_dataportal.descriptions.theme.
64
    'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
65
    'cdm_IdentificationKey' => array('variables' => array(
66
        'identificationKey' => NULL,
67
        'doLinkToKeyPage' => TRUE,
68
        'showIdentificationKeyTitle' => TRUE,
69
    )),
70
    'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
71
    'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
72
    'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
73
    'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
74
    'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
75

    
76
    // Themes in cdm_dataportal.media.theme.
77
    'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
78
    'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
79
    'cdm_media_mime_text' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
80
    'cdm_media_caption' => array('variables' => array(
81
        'media' => NULL,
82
        'elements' => array('title', 'description', 'artist', 'location', 'rights'),
83
        'sources_as_content' => FALSE
84
    )),
85
    // Themes in cdm_dataportal.name.theme.
86
    'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
87
    'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
88
    'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
89
    'cdm_homotypicSynonymyGroup' => array('variables' => array(
90
        'synonymList' => NULL,
91
        'accepted_taxon_name_uuid' => NULL,
92
        'prependedSynonyms' => array(),
93
    )),
94
    'get_nameRenderTemplate' => array('variables' => array()),
95
    'get_partDefinition' => array('variables' => array()),
96

    
97
    // Themes in cdm_dataportal.page.theme.
98
    'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
99
    'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
100
    'cdm_media_page' => array('variables' => array(
101
        'media' => NULL,
102
        'mediarepresentation_uuid' => FALSE,
103
        'partId' => FALSE,
104
    )),
105
    'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
106

    
107
    // Themes in cdm_dataportal.taxon.theme.
108
    'cdm_search_taxa_results' => array('variables' => array(
109
        'pager' => NULL,
110
        'path' => NULL
111
    )),
112
    'cdm_search_specimen_results' => array('variables' => array(
113
        'pager' => NULL,
114
        'path' => NULL
115
    )),
116
    'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
117

    
118
    // Themes in includes/pre-drupal8.inc
119
    'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
120
  );
121
}
(9-9/9)