function dba_database_overview_form_validate in Database Administration 5
File
- ./
dba.module, line 496 - 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_database_overview_form_validate($form_id, $form_values) {
if (!array_filter($form_values['tables'])) {
$op = isset($_POST['op']) ? $_POST['op'] : '';
form_set_error('tables', t('You must select the table(s) to %op.', array(
'%op' => theme('placeholder', $op),
)));
}
}