1 form_example_tutorial.inc | form_example_tutorial_9_submit($form, &$form_state) |
Submit function for form_example_tutorial_9().
File
- modules/
examples/ form_example/ form_example_tutorial.inc, line 664 - This is the form API tutorial.
Code
function form_example_tutorial_9_submit($form, &$form_state) {
$output = t("Form 9 has been submitted.");
for ($i = 1; $i <= $form_state['num_names']; $i++) {
$output .= t("@num: @first @last (@date)...",
array(
'@num' => $i,
'@first' => $form_state['values']['name'][$i]['first'],
'@last' => $form_state['values']['name'][$i]['last'],
'@date' => $form_state['values']['name'][$i]['year_of_birth'],
)
) . ' ';
}
backdrop_set_message($output);
}