You are here

function hosting_task_delete_form in Hosting 7.4

Confirmation form for site backups.

See also

hosting_task_confirm_form().

File

site/hosting_site.module, line 1069
Contains hook implementations for Hosting site module.

Code

function hosting_task_delete_form($node) {
  $form = array();
  if ($node->type == 'site') {
    $form['confirm'] = array(
      '#title' => t('Confirm: All data in this site will be destroyed. Check this box to confirm your intentions to do this.'),
      '#type' => 'checkbox',
      '#required' => TRUE,
      '#description' => t('WARNING: Taking this action will destroy all data in the site !link.', array(
        '!link' => l($node->title, $node->title, array(
          'options' => array(
            'attributes' => array(
              'target' => '_blank',
            ),
          ),
        )),
      )),
    );
  }
  return $form;
}