You are here

function _backup_migrate_get_table_names in Backup and Migrate 5

Same name and namespace in other branches
  1. 8.2 includes/db.inc \_backup_migrate_get_table_names()
  2. 5.2 includes/db.inc \_backup_migrate_get_table_names()
  3. 6 backup_migrate.module \_backup_migrate_get_table_names()

Get the list of table names.

6 calls to _backup_migrate_get_table_names()
BackupMigrateFunctionalityTest::testRestoreFromSaved in tests/BackupMigrateFunctionalityTest.test
BackupMigrateFunctionalityTest::testRestoreFromUpload in tests/BackupMigrateFunctionalityTest.test
BackupMigrateFunctionalityTest::testSaveDefaultSettings in tests/BackupMigrateFunctionalityTest.test
BackupMigrateUnitTest::testGetTableNames in tests/BackupMigrateUnitTest.test
BackupMigrateUnitTest::testGetTables in tests/BackupMigrateUnitTest.test

... See full list

File

./backup_migrate.module, line 704
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (f.e. cache_*)

Code

function _backup_migrate_get_table_names() {
  $out = "";

  // Get auto_increment values and names of all tables.
  $tables = db_query("show table status");
  while ($table = db_fetch_array($tables)) {
    $out[$table['Name']] = $table['Name'];
  }
  return $out;
}