function dba_empty_tables_submit in Database Administration 7
Perform export of one or more tables.
File
- ./
dba.admin.inc, line 524
Code
function dba_empty_tables_submit($form, &$form_state) {
$tables = unserialize($form_state['input']['empty_tables']);
foreach ($tables as $table) {
$unprefixed_table = dba_strip_prefix($table);
db_truncate($unprefixed_table)
->execute();
drupal_set_message(t('Emptied table !table.', array(
'!table' => $table,
)));
}
drupal_goto('admin/structure/dba');
}