1 file.admin.inc file_type_revert_confirm($form, &$form_state, $type)

Menu callback; revert a single file type.

File

core/modules/file/file.admin.inc, line 426
File type editing user interface.

Code

function file_type_revert_confirm($form, &$form_state, $type) {
  $form['type'] = array('#type' => 'value', '#value' => $type->type);
  $form['name'] = array('#type' => 'value', '#value' => $type->name);
  $message = t('Are you sure you want to revert the file type %type?', array('%type' => $type->name));
  return confirm_form($form, $message, 'admin/structure/file-types', '', t('Revert'));
}