function filemime_apply_submit in File MIME 7
Retroactively applies MIME type mapping to all previously uploaded files.
File
- ./
filemime.admin.inc, line 47 - Admin page callbacks for File MIME module.
Code
function filemime_apply_submit($form, &$form_state) {
batch_set(array(
'operations' => array(
array(
'filemime_apply_process',
array(),
),
),
'finished' => 'filemime_apply_finished',
'title' => t('Processing File MIME batch'),
'init_message' => t('File MIME batch is starting.'),
'progress_message' => t('Please wait...'),
'error_message' => t('File MIME batch has encountered an error.'),
'file' => drupal_get_path('module', 'filemime') . '/filemime.admin.inc',
));
batch_process('admin/config/media/filemime');
}