You are here

function _backup_migrate_path_is_in_save_dir in Backup and Migrate 5

Same name and namespace in other branches
  1. 5.2 includes/destinations.file.inc \_backup_migrate_path_is_in_save_dir()
  2. 6 backup_migrate.module \_backup_migrate_path_is_in_save_dir()

Return the path on the server to save the dump files.

6 calls to _backup_migrate_path_is_in_save_dir()
BackupMigrateUnitTest::testPathinSaveDir in tests/BackupMigrateUnitTest.test
backup_migrate_delete_confirm_submit in ./backup_migrate.module
backup_migrate_file_download in ./backup_migrate.module
Implementation of hook_file_download.()
backup_migrate_restore_confirm_submit in ./backup_migrate.module
_backup_migrate_delete in ./backup_migrate.module
Menu callback. Delete a previous backup.

... See full list

File

./backup_migrate.module, line 1035
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_path_is_in_save_dir($path, $mode = "") {
  $backup_dir = _backup_migrate_get_save_path($mode);
  return file_exists($backup_dir) && file_check_location($path, $backup_dir);
}