You are here

function _backup_migrate_default_filename in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/files.inc \_backup_migrate_default_filename()
  2. 8.3 includes/files.inc \_backup_migrate_default_filename()
  3. 5.2 includes/files.inc \_backup_migrate_default_filename()
  4. 6.3 includes/files.inc \_backup_migrate_default_filename()
  5. 7.3 includes/files.inc \_backup_migrate_default_filename()
  6. 7.2 includes/files.inc \_backup_migrate_default_filename()

Construct a default filename using the site's name.

2 calls to _backup_migrate_default_filename()
_backup_migrate_profile_default_profile in includes/profiles.inc
Get the default profile.
_backup_migrate_setup_database_defaults in ./backup_migrate.install

File

includes/files.inc, line 99
General file handling code for Backup and Migrate.

Code

function _backup_migrate_default_filename() {
  if (module_exists('token')) {
    return '[site-name]';
  }
  else {
    return _backup_migrate_construct_filename(variable_get('site_name', "backup_migrate"));
  }
}