You are here

function party_devel_generate_parties_form in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_devel/party_devel.module \party_devel_generate_parties_form()
1 string reference to 'party_devel_generate_parties_form'
party_devel_menu in modules/party_devel/party_devel.module
Implementation of hook_menu().

File

modules/party_devel/party_devel.module, line 23
Party Developer Tools

Code

function party_devel_generate_parties_form() {
  $form['kill_parties'] = array(
    '#type' => 'checkbox',
    '#title' => t('<strong>Delete all parties</strong> of these types before generating new parties.'),
    '#default_value' => FALSE,
  );
  $form['num_parties'] = array(
    '#type' => 'textfield',
    '#title' => t('How many parties would you like to generate?'),
    '#default_value' => 50,
    '#size' => 10,
  );
  $form['label_length'] = array(
    '#type' => 'textfield',
    '#title' => t('Max word length of party labels'),
    '#default_value' => 2,
    '#size' => 10,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Generate'),
  );
  $form['#redirect'] = FALSE;
  return $form;
}