You are here

function taxonomy_entity_index_admin_form in Taxonomy Entity Index 7

Form builder for the batch reindexing form.

1 string reference to 'taxonomy_entity_index_admin_form'
taxonomy_entity_index_menu in ./taxonomy_entity_index.module
Implements hook_menu().

File

./taxonomy_entity_index.admin.inc, line 6

Code

function taxonomy_entity_index_admin_form() {

  // Retrieve a list of all entity types.
  $entities = module_invoke_all('entity_info');
  foreach ($entities as $key => $entity) {
    $options[$key] = $entity['label'];
  }
  $form['types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Entity types'),
    '#options' => $options,
    '#description' => t('Re-index all terms for the selected entity types.'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Rebuild Index',
  );
  return $form;
}