function search_files_helper_edit_submit in Search Files 6.2
Same name and namespace in other branches
- 5 search_files.module \search_files_helper_edit_submit()
update the row in the table search_files_helpers for the given helper app
File
- ./
search_files.module, line 400 - Used to index files in attachments and directories
Code
function search_files_helper_edit_submit($form, &$form_state) {
$sql = "\n UPDATE {search_files_helpers}\n SET\n name = '%s',\n extension = '%s',\n helper_path = '%s'\n WHERE id = %d\n ";
$result = db_query($sql, $form_state['clicked_button']['#post']['search_files_name'], $form_state['clicked_button']['#post']['search_files_extension'], $form_state['clicked_button']['#post']['search_files_helper_path'], $form_state['values']['search_file_id']);
if ($result) {
drupal_set_message(t('Helper app %helper_name has been updated', array(
'%helper_name' => $form_state['values']['search_files_name'],
)));
drupal_goto('admin/settings/search_files/helpers/list');
}
}