1 form_example_tutorial.inc | form_example_tutorial_7_submit($form, &$form_state) |
Submit function for form_example_tutorial_7().
Adds a submit handler/function to our form to send a successful completion message to the screen.
File
- modules/
examples/ form_example/ form_example_tutorial.inc, line 327 - This is the form API tutorial.
Code
function form_example_tutorial_7_submit($form, &$form_state) {
backdrop_set_message(t('The form has been submitted. name="@first @last", year of birth=@year_of_birth',
array(
'@first' => $form_state['values']['first'],
'@last' => $form_state['values']['last'],
'@year_of_birth' => $form_state['values']['year_of_birth'],
)
));
}