function profile2_form_validate in Profile 2 7
Same name and namespace in other branches
- 7.2 contrib/profile2_page.inc \profile2_form_validate()
Profile form validate handler.
Set the profile label from the entered title.
1 string reference to 'profile2_form_validate'
- profile2_form in contrib/
profile2_page.inc - The profile edit form.
File
- contrib/
profile2_page.inc, line 87 - Adds separate pages for viewing and editing profiles.
Code
function profile2_form_validate($form, &$form_state) {
$profile = reset($form_state['profiles']);
$profile->label = $form_state['values']['title'];
}