function _backup_migrate_default_filename in Backup and Migrate 8.3
Same name and namespace in other branches
- 8.2 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.3 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.
1 call to _backup_migrate_default_filename()
- _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"));
}
}