function devel_generate_vocab_form

Generates taxonomy vocabularies using FormAPI.

1 string reference to 'devel_generate_vocab_form'
devel_generate_menu in devel_generate/devel_generate.module
Implements hook_menu().

File

devel_generate/devel_generate.module, line 308

Code

function devel_generate_vocab_form() {
    $form['num_vocabs'] = array(
        '#type' => 'textfield',
        '#title' => t('Number of vocabularies?'),
        '#default_value' => 1,
        '#size' => 10,
    );
    $form['title_length'] = array(
        '#type' => 'textfield',
        '#title' => t('Maximum number of characters in vocabulary names'),
        '#default_value' => 12,
        '#size' => 10,
    );
    $form['kill_taxonomy'] = array(
        '#type' => 'checkbox',
        '#title' => t('Delete existing vocabularies before generating new ones.'),
        '#default_value' => FALSE,
    );
    $form['actions'] = array(
        '#type' => 'actions',
    );
    $form['actions']['submit'] = array(
        '#type' => 'submit',
        '#value' => t('Generate'),
    );
    return $form;
}