function profile2_form_submit in Profile 2 7
Same name and namespace in other branches
- 7.2 contrib/profile2_page.inc \profile2_form_submit()
Profile form submit handler.
1 string reference to 'profile2_form_submit'
- profile2_form in contrib/
profile2_page.inc - The profile edit form.
File
- contrib/
profile2_page.inc, line 95 - Adds separate pages for viewing and editing profiles.
Code
function profile2_form_submit($form, &$form_state) {
// The profile is being saved by profile2_form_submit_handler().
drupal_set_message(t('The changes have been saved.'));
$form_state['redirect'] = $form_state['profile2']
->path();
}