function file_entity_type_revert_confirm_submit in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 file_entity.admin.inc \file_entity_type_revert_confirm_submit()
Process file type delete confirm submissions.
File
- ./
file_entity.admin.inc, line 1035
Code
function file_entity_type_revert_confirm_submit($form, &$form_state) {
// @NOTE deleting the file_type from the DB actually reverts it to code.
file_type_delete($form_state['values']['type']);
$t_args = array(
'%label' => $form_state['values']['label'],
);
drupal_set_message(t('The file type %label has been reverted.', $t_args));
watchdog('file_entity', 'Reverted file type %label.', $t_args, WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/structure/file-types';
}