You are here

function dba_describe_tables in Database Administration 7

Describe selected tables.

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

File

./dba.admin.inc, line 537

Code

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