You are here

function data_ui_drop_form_submit in Data 7

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

Submit handler for data_ui_drop_form().

File

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

Code

function data_ui_drop_form_submit($form, &$form_state) {
  $table = $form['#table'];
  data_drop_table($table
    ->get('name'));
  drupal_set_message(t("Table @table has been dropped.", array(
    '@table' => $table
      ->get('name'),
  )));
  $form_state['redirect'] = 'admin/structure/data';
}