function masquerade_settings_validate in Masquerade 5
File
- ./
masquerade.module, line 158 - masquerade.module
Code
function masquerade_settings_validate($form_id, $form_value) {
$test_user = user_load(array(
'name' => $form_value['masquerade_test_user'],
));
if (!$test_user) {
form_set_error('masquerade_test_user', t('No such user exists. Please enter a valid username.'));
}
}