function dba_verify_drop_form_submit in Database Administration 5
File
- ./
dba.module, line 1257 - Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…
Code
function dba_verify_drop_form_submit($form_id, $form_values) {
unset($_SESSION['dba_tables']);
if (is_array($form_values['tables'])) {
$tables = $form_values['tables'];
}
else {
$tables = explode(',', $form_values['tables']);
}
if (user_access('dba administer database')) {
foreach ($tables as $table) {
dba_drop_table($table);
}
}
return 'admin/build/database';
}