function imce_delete_submit in IMCE 7
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_delete_submit()
- 6 inc/page.inc \imce_delete_submit()
Submit delete form.
1 string reference to 'imce_delete_submit'
- imce_delete_form in inc/
imce.page.inc - Delete form.
File
- inc/
imce.page.inc, line 395 - Implements the file browser.
Code
function imce_delete_submit($form, &$form_state) {
$form_state['redirect'] = FALSE;
$imce =& $form_state['build_info']['args'][0]['imce'];
$deleted = imce_process_files($form_state['values']['filenames'], $imce, 'imce_delete_file');
if (!empty($deleted)) {
drupal_set_message(t('File deletion successful: %files.', array(
'%files' => utf8_encode(implode(', ', $deleted)),
)));
}
}