You are here

function profile2_form_submit in Profile 2 7.2

Same name and namespace in other branches
  1. 7 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 115
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().
  $form_state['redirect'] = $form_state['profile2']
    ->path();
}