Spaces form alter of the system settings form needs to be updated to work with drupal 7. The two major issues are that the buttons have been moved into a 'actions' container.

http://drupal.org/node/482816#comment-2881912

And for drupal core the "Reset to defaults" option has been removed.

http://drupal.org/node/518750

It makes sense for "Reset to Defaults" to remain for spaces since there are actually defaults to reset to. The following patch updates the code to work with the new implementation of the system settings form and adds back the "Reset" button when in a space.

CommentFileSizeAuthor
#1 1700436-1-system_settings_form.patch2.1 KBrbrandon

Comments

rbrandon’s picture

StatusFileSize
new2.1 KB

Patch

rbrandon’s picture

Status: Active » Needs review
webflo’s picture

Status: Needs review » Fixed

Thanks! Found another 'button' key in spaces_features_form().

 diff --git a/spaces.admin.inc b/spaces.admin.inc
 index abd65c5..2c10ab6 100644
 --- a/spaces.admin.inc
 +++ b/spaces.admin.inc
 @@ -78,7 +78,7 @@ function spaces_features_form($form, &$form_state) {
  
    $form = system_settings_form($form);
    $form['#theme'] = 'spaces_features_form';
 -  $form['buttons']['#weight'] = 100;
 +  $form['actions']['#weight'] = 100;
    return $form;
  }

Committed to 7.x-3.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.