You are here

function dba_menu in Database Administration 7

Same name and namespace in other branches
  1. 5 dba.module \dba_menu()

Implements hook_menu().

File

./dba.module, line 40
Directly administer your Drupal website.

Code

function dba_menu() {
  $items = array();
  $items['admin/config/development/dba'] = array(
    'title' => 'Database administration',
    'description' => 'Configure the database administration module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_admin_settings',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.admin.inc',
  );
  $items['admin/structure/dba'] = array(
    'title' => 'Database administration',
    'description' => "View and edit your site's database directly.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_table_overview',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.admin.inc',
  );
  $items['admin/structure/dba/view'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_view_tables',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.admin.inc',
  );
  $items['admin/structure/dba/export'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_export_tables',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.admin.inc',
  );
  $items['admin/structure/dba/empty'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_empty_tables',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.admin.inc',
  );
  $items['admin/structure/dba/describe'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_describe_tables',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.admin.inc',
  );
  $items['admin/reports/databasereport'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => t('View database report'),
    'description' => t('View reports about your database, helpful when tuning for better performance'),
    'page callback' => 'dba_report_page',
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.report.inc',
  );
  $items['admin/reports/databasestats'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => t('View database statistics report'),
    'description' => t('Generate database statistics by comparing two snapshots of global counters'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'dba_statpack_page',
    ),
    'access arguments' => array(
      'administer database',
    ),
    'file' => 'dba.statpack.inc',
  );
  return $items;
}