function form_example_tutorial_7_submit
Submit function for form_example_tutorial_7().
Adds a submit handler/function to our form to send a successful completion message to the screen.
Related topics
File
-
form_example/
form_example_tutorial.inc, line 354
Code
function form_example_tutorial_7_submit($form, &$form_state) {
drupal_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'],
)));
}