You are here

function _backup_migrate_default_file_name in Backup and Migrate 5

Same name and namespace in other branches
  1. 6 backup_migrate.module \_backup_migrate_default_file_name()

Construct a default filename using the site's name.

4 calls to _backup_migrate_default_file_name()
BackupMigrateUnitTest::testDefaultFileName in tests/BackupMigrateUnitTest.test
backup_migrate_backup in ./backup_migrate.module
The backup/export form.
backup_migrate_cron in ./backup_migrate.module
Implementation of hook_cron(),
_backup_migrate_backup_with_defaults in ./backup_migrate.module
Backup the database with the default settings.

File

./backup_migrate.module, line 1200
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_default_file_name() {
  if (module_exists('token')) {
    return '[site-name]';
  }
  else {
    return _backup_migrate_clean_filename(variable_get('site_name', "backup_migrate"));
  }
}