Revision aa26f9f0
Added by Andreas Kohlbecker over 7 years ago
modules/cdm_dataportal/settings.php | ||
---|---|---|
513 | 513 |
* @return array |
514 | 514 |
* an associative array of settings, with the following fields: |
515 | 515 |
* - as_list: string |
516 |
* this setting will be used in compose_cdm_feature_block_elements() as $enclosing_tag
|
|
516 |
* this setting will be used in compose_feature_block_elements() as $enclosing_tag |
|
517 | 517 |
* possible values are: |
518 | 518 |
* div: not as list, |
519 | 519 |
* ul: as bullet list, |
... | ... | |
549 | 549 |
* possible values are the constants SORT_ASC, SORT_DESC, NULL, |
550 | 550 |
* some feature types (Distribution) also support: SORT_HIERARCHICAL ( |
551 | 551 |
* TODO option to exclude levels, put in special?, |
552 |
* TODO make use of this setting in compose_cdm_feature_block_elements())
|
|
552 |
* TODO make use of this setting in compose_feature_block_elements()) |
|
553 | 553 |
* - element_tag |
554 | 554 |
* specifies the tag to be used for creating the elements, only applies if "as_list" == 'div' |
555 | 555 |
* possible values are span | div. the proper inner tag name can be retrieved by the function |
... | ... | |
562 | 562 |
*/ |
563 | 563 |
function get_feature_block_settings($feature_uuid = 'DEFAULT') { |
564 | 564 |
// the default must conform to the default parameter values of |
565 |
// compose_cdm_feature_block_elements() : $glue = '', $sort = FALSE, $enclosing_tag = 'ul'
|
|
565 |
// compose_feature_block_elements() : $glue = '', $sort = FALSE, $enclosing_tag = 'ul' |
|
566 | 566 |
// compose_description_element_textdata() : asListElement = NULL |
567 | 567 |
|
568 | 568 |
// see #3257 (implement means to define the features to show up in the taxonprofile and in the specimen descriptions) |
Also available in: Unified diff
restructuring description element code