function profile2_form_submit_own_delete in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \profile2_form_submit_own_delete()
Profile form submit handler for the delete button.
1 string reference to 'profile2_form_submit_own_delete'
- profile2_form_user_profile_form_alter in ./
profile2.module - Implements hook_form_FORM_ID_alter() for the user edit form.
File
- ./
profile2.module, line 452 - Support for configurable user profiles.
Code
function profile2_form_submit_own_delete($form, &$form_state) {
$profile = $form_state['profiles'][$form['#user_category']];
if (isset($profile) && is_object($profile)) {
$form_state['redirect'] = 'user/' . $profile->uid . '/' . $form['#user_category'] . '/delete';
}
}