You are here

function hosting_site_form_hosting_settings_alter in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 site/hosting_site.backups.inc \hosting_site_form_hosting_settings_alter()

Implements hook_form_FORM_ID_alter().

File

site/hosting_site.backups.inc, line 169
Site backup functions.

Code

function hosting_site_form_hosting_settings_alter(&$form, &$form_state) {
  $form['hosting_delete_backups'] = array(
    '#title' => t('Automatically delete backups'),
    '#description' => t("When a site is deleted, should the site's backups also be deleted? Note that the final, pre-delete backup will remain."),
    '#type' => 'radios',
    '#options' => array(
      'always' => t('Always'),
      'prompt' => t('Prompt'),
      'never' => t('Never'),
    ),
    '#default_value' => variable_get('hosting_delete_backups', 'never'),
  );
}