function _backup_migrate_profile_saved_default_profile in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
- 8.3 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
- 5.2 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
- 6.3 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
- 7.3 includes/profiles.inc \_backup_migrate_profile_saved_default_profile()
- 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).
3 calls to _backup_migrate_profile_saved_default_profile()
- backup_migrate_ui_manual_backup_advanced in ./
backup_migrate.module - The menu callback for advanced manual backups.
- backup_migrate_ui_manual_quick_backup_form_submit in ./
backup_migrate.module - Submit 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 169
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;
}