function multiform_example_page in Multiple forms 7.2
Page callback.
1 string reference to 'multiform_example_page'
- multiform_example_menu in multiform_example/
multiform_example.module - Implements hook_menu().
File
- multiform_example/
multiform_example.module, line 199
Code
function multiform_example_page() {
module_load_include('inc', 'multiform_example', 'multiform_example.ajax');
$settings = array(
'#multiform_id' => 'multiform_example_generic',
'#subforms' => array(
array(
'form_id' => 'multiform_example_form_first',
'#after_execute' => array(
'multiform_example_first_subform_after_execute',
),
'#map' => array(
0 => array(
'#parents' => array(
'submit_first_2',
),
'#triggering_submit' => array(
'register',
),
),
),
),
array(
'form_id' => 'multiform_example_form_second',
'#map' => array(
0 => array(
'#parents' => array(
'submit_second_2',
),
'#triggering_submit' => array(
'register',
),
),
),
),
array(
'form_id' => 'multiform_ajax_example_form',
),
),
'#submit_map' => array(
'#submits' => array(
'register' => array(
'#type' => 'submit',
'#value' => t('Register multiform'),
),
),
),
'#redirect_path' => '<front>',
);
return multiform_get_form($settings);
}