You are here

function data_ui_revert_form in Data 7

Same name and namespace in other branches
  1. 6 data_ui/data_ui.admin.inc \data_ui_revert_form()

Form callback for revert table form.

1 string reference to 'data_ui_revert_form'
data_ui_menu in data_ui/data_ui.module
Implements hook_menu().

File

data_ui/data_ui.admin.inc, line 431
Admin UI functions.

Code

function data_ui_revert_form($form, &$form_state, $table) {
  $table = data_get_table($table);
  $form = array();
  $form_state['#redirect'] = 'admin/structure/data';
  $form['#table'] = $table;
  return confirm_form($form, t('Revert this table?'), 'admin/structure/data', t('Are you sure you would like to revert table @table? This will reset all information about this table its definition in code. This action cannot be undone.', array(
    '@table' => $table
      ->get('name'),
  )), t('Revert'), t('Cancel'));
}