function apachesolr_attachments_confirm in Apache Solr Attachments 6
Same name and namespace in other branches
- 6.3 apachesolr_attachments.admin.inc \apachesolr_attachments_confirm()
- 6.2 apachesolr_attachments.admin.inc \apachesolr_attachments_confirm()
- 7 apachesolr_attachments.admin.inc \apachesolr_attachments_confirm()
1 string reference to 'apachesolr_attachments_confirm'
- apachesolr_attachments_menu in ./
apachesolr_attachments.module - Implementation of hook_menu().
File
- ./
apachesolr_attachments.admin.inc, line 158 - Provides a file attachment search implementation for use with the Apache Solr module
Code
function apachesolr_attachments_confirm($form_state, $operation) {
$form = array();
$form['operation'] = array(
'#type' => 'value',
'#value' => $operation,
);
switch ($operation) {
case 'reindex':
$text = t('Are you sure you want to re-index the text of all file attachments?');
break;
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/settings/apachesolr/attachments', NULL, t('Confirm'), t('Cancel'));
}