Revision 8b3aa5d4
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/includes/common.inc | ||
---|---|---|
89 | 89 |
* @ingroup compose |
90 | 90 |
*/ |
91 | 91 |
function compose_cdm_marker($marker) { |
92 |
|
|
93 |
$render_array = array( |
|
94 |
// ---- generic |
|
95 |
// these entries should be common to all cdm enitiy render arrays |
|
96 |
'#theme' => 'cdm_marker', // TODO add alternative theme funcitons: 'cdm_marker_' . marker.type.label |
|
97 |
'#attributes' => array('class' => html_class_attribute_ref($marker)), |
|
98 |
|
|
99 |
// ---- individual |
|
100 |
'#label' => $marker->markerType->representation_L10n . ': ' . (($marker->flag !== TRUE ? t('yes') : t('no'))), |
|
101 |
); |
|
102 |
|
|
103 |
return $render_array; |
|
92 |
$label = $marker->markerType->representation_L10n . ': ' . (($marker->flag !== TRUE ? t('yes') : t('no'))); |
|
93 |
return markup_to_render_array('<span class="' . html_class_attribute_ref($marker) . '">' . $label . '</span>'); |
|
104 | 94 |
} |
105 | 95 |
|
106 | 96 |
/** |
Also available in: Unified diff
removing theme function for markers