You are here

function devel_switch_user_form in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \devel_switch_user_form()
  2. 7 devel.module \devel_switch_user_form()
1 string reference to 'devel_switch_user_form'
devel_block in ./devel.module
Implementation of hook_block().

File

./devel.module, line 446

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;
}