You are here

function deploy_delete_server_form in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 deploy.servers.admin.inc \deploy_delete_server_form()

delete a deployment plan confirmation form

1 string reference to 'deploy_delete_server_form'
deploy_menu in ./deploy.module
Implementation of hook_menu().

File

./deploy.module, line 490

Code

function deploy_delete_server_form($sid = NULL) {
  $server = deploy_get_server($sid);
  if (!$server) {
    drupal_goto('admin/build/deploy/servers');
  }
  $form['sid'] = array(
    '#type' => 'value',
    '#value' => $sid,
  );
  $form = confirm_form($form, t('Are you sure you want to delete the server %server_name?', array(
    '%server_name' => $server['description'],
  )), 'admin/build/deploy/servers', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
  return $form;
}