You are here

function apachesolr_attachments_confirm in Apache Solr Attachments 7

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.admin.inc \apachesolr_attachments_confirm()
  2. 6 apachesolr_attachments.admin.inc \apachesolr_attachments_confirm()
  3. 6.2 apachesolr_attachments.admin.inc \apachesolr_attachments_confirm()

Index confirmation form

See also

apachesolr_attachments_confirm_submit()

1 string reference to 'apachesolr_attachments_confirm'
apachesolr_attachments_menu in ./apachesolr_attachments.module
Implements hook_menu().

File

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

Code

function apachesolr_attachments_confirm($form, $form_state, $operation) {
  $form = array();
  $form['operation'] = array(
    '#type' => 'value',
    '#value' => $operation,
  );
  switch ($operation) {
    case 'delete':
      $text = t('Are you sure you want to delete and re-index the text of all file attachments?');
      break;
    case 'clear-cache':
      $text = t('Are you sure you want to delete the cache of extracted text from file attachments?');
      break;
  }
  return confirm_form($form, $text, 'admin/config/search/apachesolr/attachments', NULL, t('Confirm'), t('Cancel'));
}