function _backup_migrate_profile_saved_default_profile

cis7 profiles.inc _backup_migrate_profile_saved_default_profile($profile_id = NULL)
cle7 profiles.inc _backup_migrate_profile_saved_default_profile($profile_id = NULL)
elmsmedia7 profiles.inc _backup_migrate_profile_saved_default_profile($profile_id = NULL)
icor7 profiles.inc _backup_migrate_profile_saved_default_profile($profile_id = NULL)
meedjum_blog7 profiles.inc _backup_migrate_profile_saved_default_profile($profile_id = NULL)
mooc7 profiles.inc _backup_migrate_profile_saved_default_profile($profile_id = NULL)

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

3 calls to _backup_migrate_profile_saved_default_profile()
backup_migrate_ui_manual_backup_advanced in sites/all/modules/ulmus/backup_migrate/backup_migrate.module
The menu callback for advanced manual backups.
backup_migrate_ui_manual_quick_backup_form_submit in sites/all/modules/ulmus/backup_migrate/backup_migrate.module
Submit the quick backup form.
_backup_migrate_backup_with_defaults in sites/all/modules/ulmus/backup_migrate/backup_migrate.module
Backup the database with the default settings.

File

sites/all/modules/ulmus/backup_migrate/includes/profiles.inc, line 170
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", 'default');
  $profile = NULL;
  if ($profile_id) {
    $profile = backup_migrate_get_profile($profile_id);
  }
  if (!$profile) {
    $profile = backup_migrate_get_profile('default');
  }
  return $profile;
}