You are here

function batch_add_terms_form in Batch add terms 7

Form for batch add terms.

1 string reference to 'batch_add_terms_form'
batch_add_terms_menu in ./batch_add_terms.module
Implements hook_menu().

File

./batch_add_terms.admin.inc, line 6

Code

function batch_add_terms_form($form, $form_state, $vocabulary) {
  $form['terms'] = array(
    '#type' => 'textarea',
    '#title' => t('Terms'),
    '#description' => t('Enter one term name per line.'),
    '#required' => TRUE,
    '#rows' => 15,
  );
  $form['check_duplicates'] = array(
    '#type' => 'checkbox',
    '#title' => t('Check for duplicates'),
    '#description' => t('Enable this option if you do not want to add existing terms.'),
  );
  $form['actions'] = array(
    '#type' => '#actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Add'),
  );
  return $form;
}