mirror of https://github.com/BOINC/boinc.git
Removed delete button from edit profile form
(DBOINCP-102)
This commit is contained in:
parent
3724992a20
commit
ca7e39caa6
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue