function search_files_helper_add_form_submit in Search Files 6.2
insert a row in the search_files_helpers table for the helper app given by the form
File
- ./
search_files.module, line 439 - Used to index files in attachments and directories
Code
function search_files_helper_add_form_submit($form, $form_state) {
$result = search_files_helper_db_add($form_state['values']['search_files_name'], $form_state['values']['search_files_extension'], $form_state['values']['search_files_helper_path']);
if ($result) {
drupal_set_message(t('%helper helper added', array(
'%helper' => $form_state['values']['search_files_name'],
)));
}
if ($form_state['clicked_button']['#id'] == 'edit-submit-done') {
drupal_goto('admin/settings/search_files/helpers/list');
}
}