You are here

function file_entity_type_revert_confirm in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.admin.inc \file_entity_type_revert_confirm()

Menu callback; revert a single file type.

1 string reference to 'file_entity_type_revert_confirm'
file_entity_menu in ./file_entity.module
Implements hook_menu().

File

./file_entity.admin.inc, line 1025

Code

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