You are here

function devel_switch_user_form_validate in Devel 6

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

File

./devel.module, line 786

Code

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