function _backup_migrate_default_filename in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/files.inc \_backup_migrate_default_filename()
- 8.3 includes/files.inc \_backup_migrate_default_filename()
- 5.2 includes/files.inc \_backup_migrate_default_filename()
- 6.3 includes/files.inc \_backup_migrate_default_filename()
- 6.2 includes/files.inc \_backup_migrate_default_filename()
- 7.2 includes/files.inc \_backup_migrate_default_filename()
Construct a default filename using the site's name.
3 calls to _backup_migrate_default_filename()
- BmTestBase::fileHasTimestamp in tests/
BmTestBase.test - Work out whether a backup filename includes a timestamp.
- BmTestProfiles::testAddDefaultProfile in tests/
BmTestProfiles.test - Confirm adding a new backup process works.
- _backup_migrate_profile_default_profile in includes/
profiles.inc - Get the default profile.
File
- includes/
files.inc, line 176 - 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 _backup_migrate_clean_filename(variable_get('site_name', "backup_migrate"));
}
}