You are here

function backup_migrate_ui_profile_delete_confirm in Backup and Migrate 5.2

Ask confirmation for deletion of a profile.

1 string reference to 'backup_migrate_ui_profile_delete_confirm'
backup_migrate_ui_profile_delete in includes/profiles.inc
Delete a profile.

File

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

Code

function backup_migrate_ui_profile_delete_confirm($profile_id) {
  $form['profile_id'] = array(
    '#type' => 'value',
    '#value' => $profile_id,
  );
  $profile = backup_migrate_get_profile($profile_id);
  return confirm_form($form, t('Are you sure you want to delete the profile %profile?', array(
    '%profile' => $profile['name'],
  )), 'admin/content/backup_migrate/profile', t('This will cannot be undone.'), t('Delete'), t('Cancel'));
}