function profile2_form_submit_delete in Profile 2 7
Same name and namespace in other branches
- 7.2 contrib/profile2_page.inc \profile2_form_submit_delete()
Profile form submit handler for the delete button.
1 string reference to 'profile2_form_submit_delete'
- profile2_form in contrib/profile2_page.inc 
- The profile edit form.
File
- contrib/profile2_page.inc, line 104 
- Adds separate pages for viewing and editing profiles.
Code
function profile2_form_submit_delete($form, &$form_state) {
  $form_state['redirect'] = $form_state['profile2']
    ->path() . '/delete';
}