You are here

function _backup_migrate_profile_default_profile in Backup and Migrate 5.2

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

Get the default profile.

3 calls to _backup_migrate_profile_default_profile()
backup_migrate_ui_profile_create in includes/profiles.inc
Get a form to create a new profile.
_backup_migrate_profile_saved_default_profile in includes/profiles.inc
Get the default profile saved by the user (or the module default if none exists).
_backup_migrate_setup_databaase_defaults in ./backup_migrate.install

File

includes/profiles.inc, line 370
All of the settings profiles handling code for Backup and Migrate.

Code

function _backup_migrate_profile_default_profile() {
  require_once './' . drupal_get_path('module', 'backup_migrate') . '/includes/db.inc';
  require_once './' . drupal_get_path('module', 'backup_migrate') . '/includes/files.inc';
  return array(
    'source_id' => 'db_url:default',
    'exclude_tables' => _backup_migrate_default_exclude_tables(),
    'nodata_tables' => _backup_migrate_default_structure_only_tables(),
    'filename' => _backup_migrate_default_filename(),
    'append_timestamp' => 1,
    'timestamp_format' => 'Y-m-d\\TH-i-s',
    'compression' => "none",
  );
}