You are here

function _backup_migrate_default_file_name in Backup and Migrate 6

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

Construct a default filename using the site's name.

3 calls to _backup_migrate_default_file_name()
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 1183
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"));
  }
}