You are here

function devel_switch_user_form in Devel 6

Same name and namespace in other branches
  1. 5 devel.module \devel_switch_user_form()
  2. 7 devel.module \devel_switch_user_form()
1 string reference to 'devel_switch_user_form'
devel_block_switch_user in ./devel.module

File

./devel.module, line 747

Code

function devel_switch_user_form() {
  $form['username'] = array(
    '#type' => 'textfield',
    '#description' => t('Enter username'),
    '#autocomplete_path' => 'user/autocomplete',
    '#maxlength' => USERNAME_MAX_LENGTH,
    '#size' => 16,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Switch'),
  );
  return $form;
}