function file_entity_type_enable_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_enable_confirm_submit()
Process file type disable confirm submissions.
File
- ./
file_entity.admin.inc, line 979
Code
function file_entity_type_enable_confirm_submit($form, &$form_state) {
file_type_enable($form_state['values']['type']);
$t_args = array(
'%label' => $form_state['values']['label'],
);
drupal_set_message(t('The file type %label has been enabled.', $t_args));
watchdog('file_entity', 'Enabled file type %label.', $t_args, WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/structure/file-types';
}