function search_files_helper_confirm_delete_form in Search Files 7.2
Same name and namespace in other branches
- 5 search_files.module \search_files_helper_confirm_delete_form()
- 6.2 search_files.module \search_files_helper_confirm_delete_form()
Form callback for confirming deletion of a helper application.
1 string reference to 'search_files_helper_confirm_delete_form'
- search_files_menu in ./
search_files.module - Implements hook_menu().
File
- ./
search_files.module, line 249 - Organizes and provides helper functions for extracting text from files.
Code
function search_files_helper_confirm_delete_form($form, &$form_state, $helper_id) {
$helper_id = intval($helper_id);
$helper_name = db_query("SELECT name FROM {search_files_helpers} WHERE id = :hid", array(
':hid' => $helper_id,
))
->fetchField();
$form['search_files_helper_id'] = array(
'#type' => 'value',
'#value' => $helper_id,
);
$form['search_files_helper_name'] = array(
'#type' => 'value',
'#value' => $helper_name,
);
return confirm_form($form, t('Delete %name helper?', array(
'%name' => $helper_name,
)), 'admin/config/search/search_files/helpers/list', t('Are you sure you want to delete the %name helper? The text extracted by this helper will remain in the search index until the directory is reindexed. This action cannot be undone.', array(
'%name' => $helper_name,
)), t('Delete'), t('Cancel'));
}