You are here

function hosting_site_form_alter in Hosting 5

Same name and namespace in other branches
  1. 6.2 site/hosting_site.form.inc \hosting_site_form_alter()
  2. 7.4 site/hosting_site.form.inc \hosting_site_form_alter()
  3. 7.3 site/hosting_site.form.inc \hosting_site_form_alter()

Hide the delete button on site nodes

File

site/hosting_site.module, line 569

Code

function hosting_site_form_alter($form_id, &$form) {

  // Remove delete button from site edit form
  if ($form_id == 'site_node_form') {
    $form['delete']['#type'] = 'hidden';
  }
}