Removed delete button from edit profile form

(DBOINCP-102)
This commit is contained in:
Tristan Olive 2015-05-08 15:02:34 -04:00
parent 3724992a20
commit ca7e39caa6
1 changed files with 3 additions and 0 deletions

View File

@ -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';