You are here

function dba_admin_tables_view in Database Administration 5

Display the contents of the selected table.

1 string reference to 'dba_admin_tables_view'
dba_menu in ./dba.module

File

./dba.module, line 397
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_admin_tables_view() {
  if (user_access('dba administer database') && arg(6) && arg(7) && arg(8)) {
    switch (arg(6)) {
      case 'delete':
        return drupal_get_form('dba_delete_row', arg(4), arg(7), arg(8));
      case 'edit':
        return drupal_get_form('dba_edit_row', arg(4), arg(7), arg(8));
    }
  }
  else {
    return dba_table_overview(arg(4));
  }
}