Revision 05aa6608
Added by Andreas Kohlbecker about 2 years ago
modules/cdm_dataportal/cdm_api/cdm_api.module | ||
---|---|---|
1654 | 1654 |
function cdm_type_designation_status_filter_terms_as_options($none_option_label, $with_empty_option = false){ |
1655 | 1655 |
$filter_terms = cdm_ws_get(CDM_WS_TYPE_DESIGNATION_STATUS_FILTER_TERMS); |
1656 | 1656 |
|
1657 |
$options = []; |
|
1658 |
|
|
1657 | 1659 |
if(isset($filter_terms) && is_array($filter_terms)) { |
1658 | 1660 |
foreach ($filter_terms as $filter_term) { |
1659 | 1661 |
$options[join(',', $filter_term->uuids)] = $filter_term->label; |
... | ... | |
1668 | 1670 |
array_unshift ($options, ""); |
1669 | 1671 |
} |
1670 | 1672 |
|
1671 |
|
|
1672 | 1673 |
return $options; |
1673 | 1674 |
} |
1674 | 1675 |
|
Also available in: Unified diff
initializing variable