You are here

function profile2_form_validate in Profile 2 7.2

Same name and namespace in other branches
  1. 7 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 107
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'];
}