From ca7e39caa6c7c842b3b30755cdf57899978ce0b6 Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Fri, 8 May 2015 15:02:34 -0400 Subject: [PATCH] Removed delete button from edit profile form (DBOINCP-102) --- drupal/sites/default/boinc/modules/boincuser/boincuser.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drupal/sites/default/boinc/modules/boincuser/boincuser.module b/drupal/sites/default/boinc/modules/boincuser/boincuser.module index 12263069be..9a6a9c532d 100644 --- a/drupal/sites/default/boinc/modules/boincuser/boincuser.module +++ b/drupal/sites/default/boinc/modules/boincuser/boincuser.module @@ -836,6 +836,9 @@ function boincuser_form_alter(&$form, $form_state, $form_id) { // Preview is ugly, unset until it works unset($form['buttons']['preview']); + // Delete doesn't work, be rid of it + unset($form['buttons']['delete']); + unset($form['title']); unset($form['body_field']); $form['#redirect'] = 'account/profile';