You are here

function _backup_migrate_profile_saved_default_profile in Backup and Migrate 7.3

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

Get the default profile saved by the user (or the module default if none exists).

4 calls to _backup_migrate_profile_saved_default_profile()
backup_migrate_files_destination_archivesource::get_db in includes/sources.archivesource.inc
Gets a database dump to add to the archive.
backup_migrate_ui_manual_backup_advanced in ./backup_migrate.module
The menu callback for advanced manual backups.
backup_migrate_ui_manual_quick_backup_form_validate in ./backup_migrate.module
Validate the quick backup form.
_backup_migrate_backup_with_defaults in ./backup_migrate.module
Backup the database with the default settings.

File

includes/profiles.inc, line 200

Code

function _backup_migrate_profile_saved_default_profile($profile_id = NULL) {
  $profile_id = $profile_id ? $profile_id : variable_get("backup_migrate_profile_id", 'default');
  $profile = NULL;
  if ($profile_id) {
    $profile = backup_migrate_get_profile($profile_id);
  }
  if (!$profile) {
    $profile = backup_migrate_get_profile('default');
  }
  return $profile;
}