You are here

function _backup_migrate_default_filename in Backup and Migrate 7.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. 6.2 includes/files.inc \_backup_migrate_default_filename()
  6. 7.3 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 100
General file handling code for Backup and Migrate.

Code

function _backup_migrate_default_filename() {
  if (module_exists('token')) {
    return '[site:name]';
  }
  else {

    // Cleaning the string isn't strictly necessary but it looks better in the settings field.
    return variable_get('site_name', 'backup_migrate');
  }
}