function profile2_form_submit_cleanup in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \profile2_form_submit_cleanup()
Cleans up the form values as the user modules relies on clean values.
See also
1 call to profile2_form_submit_cleanup()
- profile2_form_submit_handler in ./
profile2.module - Submit handler that builds and saves all profiles in the form.
File
- ./
profile2.module, line 720 - Support for configurable user profiles.
Code
function profile2_form_submit_cleanup(&$form, &$form_state) {
foreach ($form_state['profiles'] as $type => $profile) {
unset($form_state['values']['profile_' . $type]);
}
}