You are here

function devel_switch_user_form_validate in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \devel_switch_user_form_validate()
  2. 7 devel.module \devel_switch_user_form_validate()

File

./devel.module, line 462

Code

function devel_switch_user_form_validate($form_id, $form_values) {
  if (!($account = user_load(array(
    'name' => $form_values['username'],
  )))) {
    form_set_error('username', t('Username not found'));
  }
}