You are here

function devel_generate_users_form in Devel 5

Same name and namespace in other branches
  1. 6 devel_generate.module \devel_generate_users_form()
  2. 7 devel_generate/devel_generate.module \devel_generate_users_form()
1 string reference to 'devel_generate_users_form'
devel_generate_menu in ./devel_generate.module
Implementation of hook_menu().

File

./devel_generate.module, line 56

Code

function devel_generate_users_form() {
  $form['num'] = array(
    '#type' => 'textfield',
    '#title' => t('How many users would you like to generate?'),
    '#default_value' => 50,
    '#size' => 10,
  );
  $form['kill_users'] = array(
    '#type' => 'checkbox',
    '#title' => t('Delete all users but user 1 before generating new users.'),
    '#default_value' => FALSE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Do it!'),
  );
  return $form;
}