You are here

function userone_admin_settings_validate in User One 6

File

./userone.module, line 274
User One module.

Code

function userone_admin_settings_validate($form, &$form_state) {
  $userone = user_load(1);
  if ($form_state['values']['userone_name'] == $userone->name) {
    form_set_error('userone_name', t('Login name may not be same as username, %name.', array(
      '%name' => $userone->name,
    )));
  }
}