Project

General

Profile

Download (4.58 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_pager' => array('variables' => array('pager' => NULL, 'path' => NULL, 'parameters' => NULL)),
41
    'cdm_pager_link' => array('variables' => array(
42
        'text' => NULL,
43
        'linkIndex' => NULL,
44
        'pager' => NULL,
45
        'path' => NULL,
46
        'parameters' => array(),
47
        'attributes' => NULL,
48
    )),
49
    'cdm_print_button' => array('variables' => array()),
50

    
51
    // Themes in cdm_dataportal.descriptions.theme.
52
    'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
53
    'cdm_IdentificationKey' => array('variables' => array(
54
        'identificationKey' => NULL,
55
        'doLinkToKeyPage' => TRUE,
56
        'showIdentificationKeyTitle' => TRUE,
57
    )),
58
    'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
59
    'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
60
    'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
61
    'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
62
    'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
63

    
64
    // Themes in cdm_dataportal.media.theme.
65
    'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
66
    'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
67
    'cdm_media_mime_text' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
68
    'cdm_media_caption' => array('variables' => array(
69
        'media' => NULL,
70
        'elements' => array('title', 'description', 'artist', 'location', 'rights'),
71
        'sources_as_content' => FALSE
72
    )),
73
    // Themes in cdm_dataportal.name.theme.
74
    'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
75
    'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
76
    'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
77
    'cdm_homotypicSynonymyGroup' => array('variables' => array(
78
        'synonymList' => NULL,
79
        'accepted_taxon_name_uuid' => NULL,
80
        'prependedSynonyms' => array(),
81
    )),
82
    'get_nameRenderTemplate' => array('variables' => array()),
83
    'get_partDefinition' => array('variables' => array()),
84

    
85
    // Themes in cdm_dataportal.page.theme.
86
    'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
87
    'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
88
    'cdm_media_page' => array('variables' => array(
89
        'media' => NULL,
90
        'mediarepresentation_uuid' => FALSE,
91
        'partId' => FALSE,
92
    )),
93
    'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
94

    
95
    // Themes in cdm_dataportal.taxon.theme.
96
    'cdm_search_taxa_results' => array('variables' => array(
97
        'pager' => NULL,
98
        'path' => NULL
99
    )),
100
    'cdm_search_specimen_results' => array('variables' => array(
101
        'pager' => NULL,
102
        'path' => NULL
103
    )),
104
    'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
105

    
106
    // Themes in includes/pre-drupal8.inc
107
    'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
108
  );
109
}
(8-8/8)