function backup_migrate_backup_migrate_profiles_alter in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/profiles.inc \backup_migrate_backup_migrate_profiles_alter()
- 6.3 includes/profiles.inc \backup_migrate_backup_migrate_profiles_alter()
- 6.2 includes/profiles.inc \backup_migrate_backup_migrate_profiles_alter()
- 7.3 includes/profiles.inc \backup_migrate_backup_migrate_profiles_alter()
- 7.2 includes/profiles.inc \backup_migrate_backup_migrate_profiles_alter()
Implementation of hook_backup_migrate_profiles_alter().
Add default settings for any plugins which didn't exist when the profile was saved.
File
- includes/
profiles.inc, line 30
Code
function backup_migrate_backup_migrate_profiles_alter(&$profiles) {
foreach ($profiles as $id => $profile) {
// Set the default values for filter setting which don't exist in the profile.
$profiles[$id]->filters = (array) @$profile->filters + (array) backup_migrate_filters_settings_default('backup');
}
}