1 form.inc | form_process_details($element, &$form_state) |
Processes a details element.
Parameters
array $element: An associative array containing the properties and children of the details.
array $form_state: The $form_state array for the form this element belongs to.
Return value
array: The processed element.
Related topics
File
- core/
includes/ form.inc, line 3732 - Functions for form and batch generation and processing.
Code
function form_process_details($element, &$form_state) {
// Generate the ID of the element if it's not explicitly given.
if (!array_key_exists('#id', $element)) {
$element['#id'] = backdrop_html_id(implode('-', $element['#parents']) . '-wrapper');
}
return $element;
}