Revision 09762fde
Added by Andreas Kohlbecker over 2 years ago
modules/cdm_dataportal/includes/occurrences.inc | ||
---|---|---|
986 | 986 |
} |
987 | 987 |
|
988 | 988 |
/** |
989 |
* Crates an array which can be used in render arrays to be passed to the theme_table() and theme_list(). |
|
989 |
* Crates an array which can be used in render arrays to be passed to the |
|
990 |
* theme_table() and theme_list(). |
|
991 |
* |
|
990 | 992 |
* @param array $fieldunit_dtos |
991 | 993 |
* list of FieldUnitDTOs |
992 | 994 |
*/ |
... | ... | |
1156 | 1158 |
} |
1157 | 1159 |
|
1158 | 1160 |
/** |
1159 |
* Creates an array from a list of FieldUnitDTOs. |
|
1161 |
* Composes the view on specimens and occurrences as derivate tree |
|
1162 |
* starting from the field unit including all derivatives. |
|
1160 | 1163 |
* |
1164 |
* @see DM_SPECIMEN_LIST_VIEW_MODE_OPTION_DERIVATE_TREE |
|
1161 | 1165 |
* |
1162 | 1166 |
* @param object $fieldunit_dtos |
1163 | 1167 |
* list of FieldUnitDTOs |
1164 | 1168 |
* @return array |
1165 |
* An array containing the hierarchy of the field units corresponding to the taxon
|
|
1169 |
* The Drupal render array
|
|
1166 | 1170 |
* |
1167 | 1171 |
* @ingroup compose |
1168 | 1172 |
*/ |
... | ... | |
1191 | 1195 |
// prefix attributes and rows with '#' to let it pass toF the theme function, |
1192 | 1196 |
// otherwise it is handled as child render array |
1193 | 1197 |
'#attributes' => array( |
1194 |
'class' => 'specimens',
|
|
1198 |
'class' => 'specimens ' . CDM_SPECIMEN_LIST_VIEW_MODE_OPTION_DERIVATE_TREE ,
|
|
1195 | 1199 |
'id' => $tableId |
1196 | 1200 |
), |
1197 | 1201 |
'#rows' => array(), |
... | ... | |
1644 | 1648 |
'#weight' => 2, |
1645 | 1649 |
// prefix attributes and rows with '#' to let it pass toF the theme function, |
1646 | 1650 |
// otherwise it is handled as child render array |
1647 |
'#attributes' => array('class' => 'specimens'), |
|
1651 |
'#attributes' => array('class' => 'specimens '),
|
|
1648 | 1652 |
'#rows' => array(), |
1649 | 1653 |
); |
1650 | 1654 |
|
Also available in: Unified diff
fix #9191 test for SpecimensTreeView