function profile2_form_submit_delete in Profile 2 7.2
Same name and namespace in other branches
- 7 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 123 - 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';
}