Revision 57e125ea
Added by Andreas Kohlbecker about 8 years ago
modules/cdm_dataportal/includes/descriptions.inc | ||
---|---|---|
1068 | 1068 |
// --- normal description element arrays |
1069 | 1069 |
foreach ($descriptionElements as $descriptionElement) { |
1070 | 1070 |
|
1071 |
// --- IMAGE_SOURCES --- // |
|
1072 |
if ($descriptionElement->feature->uuid == UUID_IMAGE_SOURCES) { |
|
1073 |
$image_sources[] = $descriptionElement; |
|
1074 |
} |
|
1075 | 1071 |
// --- USE TEXTDATA --- // |
1076 |
elseif ($descriptionElement->feature->uuid == UUID_USE) {
|
|
1072 |
if ($descriptionElement->feature->uuid == UUID_USE) { |
|
1077 | 1073 |
// Do nothing to avoid rendering. |
1078 | 1074 |
} else { |
1079 | 1075 |
/* decide based on the description element class |
... | ... | |
1124 | 1120 |
sort($elements_out_array); |
1125 | 1121 |
} |
1126 | 1122 |
|
1127 |
if (isset($image_sources)) { |
|
1128 |
$elements_out_array[] = theme('cdm_description_element_image_source', array('image_sources' => $image_sources, 'asListElement' => TRUE)); |
|
1129 |
$feature_block_has_content = true; |
|
1130 |
} |
|
1131 | 1123 |
} // END normal description element arrays |
1132 | 1124 |
|
1133 | 1125 |
if($feature_block_has_content){ |
Also available in: Unified diff
replacing special code for cichorieae feature 'Image source' by generic functionality