You are here

function imce_delete_submit in IMCE 6.2

Same name and namespace in other branches
  1. 6 inc/page.inc \imce_delete_submit()
  2. 7 inc/imce.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 344
Implements the file browser.

Code

function imce_delete_submit($form, &$form_state) {
  $form_state['redirect'] = FALSE;
  $imce =& $form['#parameters'][2]['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)),
    )));
  }
}