You are here

function _backup_migrate_profile_saved_default_profile in Backup and Migrate 5.2

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. 6.3 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
  4. 6.2 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
  5. 7.3 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).

2 calls to _backup_migrate_profile_saved_default_profile()
backup_migrate_ui_manual_backup in ./backup_migrate.module
The menu call back for manual backups.
_backup_migrate_backup_with_defaults in ./backup_migrate.module
Backup the database with the default settings.

File

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

Code

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