You are here

function imce_delete_submit in IMCE 6

Same name and namespace in other branches
  1. 6.2 inc/imce.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/page.inc
Delete form.

File

inc/page.inc, line 323

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)),
    )));
  }
}