You are here

function data_ui_disown_form in Data 7

Form callback for disown table form.

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

File

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

Code

function data_ui_disown_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('Disown this table?'), 'admin/structure/data', t("Are you sure you would like to disown table @table? This will remove all of Data module's customizations, while leaving the original table in the database. This action cannot be undone.", array(
    '@table' => $table
      ->get('name'),
  )), t('Disown'), t('Cancel'));
}