function multiform_init_settings in Multiple forms 7.2
Inititalize multiform settings.
1 call to multiform_init_settings()
- multiform_get_form in ./
multiform.module - Returns a form containing a number of other forms.
File
- ./
multiform.inc, line 9
Code
function multiform_init_settings(&$settings) {
// @todo: Maybe use other technique to generate default #multiform_id
// to ensure it is unique.
// Add #multiform_id if not set in settings.
// #multiform_id is required for theming (for default tpl.php tempalate name).
$settings += array(
'#multiform_id' => DEFAULT_MULTIFORM_ID,
);
$submits_form = array(
'form_id' => 'multiform_submits_form',
'args' => array(
$settings,
),
);
// Add submits_form to the end of subforms list.
array_push($settings['#subforms'], $submits_form);
foreach ($settings['#subforms'] as $k => $subform) {
$settings['#subforms'][$k] += array(
'args' => array(),
'#before_execute' => array(),
'#after_execute' => array(),
'#preprocess_form_state' => array(),
);
}
}