Revision f79d32d6
Added by Andreas Kohlbecker almost 7 years ago
modules/cdm_dataportal/cdm_api/cdm_api.module | ||
---|---|---|
948 | 948 |
|
949 | 949 |
case 'cdm_media_caption': |
950 | 950 |
$variables = array( |
951 |
'media' => $obj, |
|
952 |
// $args[0] is set in taxon_image_gallery_default in |
|
953 |
// cdm_dataportal.page.theme. |
|
954 |
'elements' => isset($args[0]) ? $args[0] : array( |
|
955 |
'title', |
|
956 |
'description', |
|
957 |
'artist', |
|
958 |
'location', |
|
959 |
'rights', |
|
951 |
'media' => $obj,
|
|
952 |
// $args[0] is set in taxon_image_gallery_default in
|
|
953 |
// cdm_dataportal.page.theme.
|
|
954 |
'elements' => isset($args[0]) ? $args[0] : array(
|
|
955 |
'title',
|
|
956 |
'description',
|
|
957 |
'artist',
|
|
958 |
'location',
|
|
959 |
'rights',
|
|
960 | 960 |
), |
961 |
'fileUri' => isset($args[1]) ? $args[1] : NULL,
|
|
961 |
'sources_as_content' => isset($args[1]) ? $args[1] : FALSE
|
|
962 | 962 |
); |
963 | 963 |
$reponse_data = theme($hook, $variables); |
964 | 964 |
break; |
Also available in: Unified diff
ref #6301 sources as inline elements on media page