function backup_migrate_profile_delete_profile in Backup and Migrate 5.2
Delete a saved profile from the database.
1 call to backup_migrate_profile_delete_profile()
- backup_migrate_ui_profile_delete_confirm_submit in includes/
profiles.inc - Delete a destination after confirmation.
File
- includes/
profiles.inc, line 100 - All of the settings profiles handling code for Backup and Migrate.
Code
function backup_migrate_profile_delete_profile($profile_id) {
$profile = backup_migrate_get_profile($profile_id);
if ($profile && $profile['db']) {
db_query("DELETE FROM {backup_migrate_profiles} WHERE profile_id = %d", $profile_id);
_backup_migrate_message('profile deleted: %profile', array(
'%profile' => $profile['name'],
));
}
}