function data_ui_drop_form in Data 7
Same name and namespace in other branches
- 6 data_ui/data_ui.admin.inc \data_ui_drop_form()
Form callback for drop table form.
1 string reference to 'data_ui_drop_form'
- data_ui_menu in data_ui/
data_ui.module - Implements hook_menu().
File
- data_ui/
data_ui.admin.inc, line 457 - Admin UI functions.
Code
function data_ui_drop_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('Drop this table?'), 'admin/structure/data', t('Are you sure you would like to drop table @table? This action cannot be undone.', array(
'@table' => $table
->get('name'),
)), t('Drop'), t('Cancel'));
}