You are here

function apachesolr_attachments_index_action_form in Apache Solr Attachments 7

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.admin.inc \apachesolr_attachments_index_action_form()

Form builder for the Apachesolr Attachments actions form.

1 string reference to 'apachesolr_attachments_index_action_form'
apachesolr_attachments_admin_page in ./apachesolr_attachments.admin.inc
Menu callback: Apache Solr Attachments settings tab.

File

./apachesolr_attachments.admin.inc, line 151
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_index_action_form($form, &$form_state, $env_id) {
  $form = array();
  $form['action'] = array(
    '#type' => 'fieldset',
    '#title' => t('Actions'),
    '#collapsible' => TRUE,
  );
  $form['action']['env_id'] = array(
    '#type' => 'value',
    '#value' => $env_id,
  );
  $form['action']['reset'] = array(
    '#prefix' => '<div>',
    '#suffix' => '</div>',
    '#type' => 'submit',
    '#value' => t('Clear the attachment text extraction cache'),
    '#submit' => array(
      'apachesolr_attachments_index_action_form_reset_submit',
    ),
  );
  $form['action']['delete'] = array(
    '#prefix' => '<div>',
    '#suffix' => '</div>',
    '#type' => 'submit',
    '#value' => t('Delete the attachments from the index'),
    '#submit' => array(
      'apachesolr_attachments_index_action_form_delete_submit',
    ),
  );
  $form['action']['extract'] = array(
    '#prefix' => '<div>',
    '#suffix' => '</div>',
    '#type' => 'submit',
    '#value' => t('Test your tika extraction'),
    '#submit' => array(
      'apachesolr_attachments_index_action_form_extraction_submit',
    ),
  );
  return $form;
}