function _hierarchical_select_process_render_db_hidden in Hierarchical Select 5.3
Same name and namespace in other branches
- 6.3 hierarchical_select.module \_hierarchical_select_process_render_db_hidden()
Render the hidden part of the dropbox. This part stores the lineages of all selections in the dropbox.
Parameters
$hsid: A hierarchical select id.
$dropbox: A dropbox object.
Return value
A structured array for use in the Forms API.
1 call to _hierarchical_select_process_render_db_hidden()
- hierarchical_select_process in ./
hierarchical_select.module - Hierarchical select form element type #process callback.
File
- ./
hierarchical_select.module, line 1027 - This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select items in a hierarchy.
Code
function _hierarchical_select_process_render_db_hidden($hsid, $dropbox) {
$element['#tree'] = TRUE;
foreach ($dropbox->lineages_selections as $x => $lineage_selection) {
$element['lineages_selections'][$x] = array(
'#type' => 'hidden',
'#value' => serialize($lineage_selection),
);
}
return $element;
}