function gin_lb_attach_lb_form in Gin Layout Builder 1.0.x
Attaches gin_lb_form to all layout builder form elements.
Parameters
array $form: The form or form element which children should have form id attached.
1 call to gin_lb_attach_lb_form()
- gin_lb_after_build in ./
gin_lb.module - After build form process.
File
- ./
gin_lb.module, line 388 - Provides hooks for gin_lb module.
Code
function gin_lb_attach_lb_form(array &$form) {
foreach (Element::children($form) as $child) {
if (!isset($form[$child]['#gin_lb_form'])) {
$form[$child]['#gin_lb_form'] = TRUE;
}
gin_lb_attach_lb_form($form[$child]);
}
}