You are here

function dba_view_tables in Database Administration 7

View selected tables.

1 string reference to 'dba_view_tables'
dba_menu in ./dba.module
Implements hook_menu().

File

./dba.admin.inc, line 135

Code

function dba_view_tables() {
  $form = array();
  if ($tables = _dba_active_tables()) {
    $quantity = count($tables);
    if ($quantity == 1) {
      drupal_set_title(t('View !table table', array(
        '!table' => check_plain($tables[0]),
      )));
    }
    else {
      drupal_set_title(t('View tables'));
    }
    foreach ($tables as $table) {
      $form += dba_view_table($table);
    }
  }
  return $form;
}