diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-03 21:01:04 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-03 21:01:04 +0000 |
commit | ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d (patch) | |
tree | 8d9f52358a4c0118b07a03d437c7d5dfe290999c /modules/system/system.module | |
parent | 8c4b6239b48a46e754e23a803f4a28745b4eb027 (diff) | |
download | brdo-ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d.tar.gz brdo-ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d.tar.bz2 |
#482816 by sun and Rob Loach: Add a consistent wrapper around submit buttons.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 6f694eabe..e4edcc4f1 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2489,7 +2489,9 @@ function _system_settings_form_automatic_defaults($form) { * The form structure. */ function system_settings_form($form, $automatic_defaults = TRUE) { - $form['buttons']['submit'] = array('#type' => 'submit', '#value' => t('Save configuration') ); + $form['actions']['#type'] = 'container'; + $form['actions']['#attributes']['class'][] = 'form-actions'; + $form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save configuration')); if ($automatic_defaults) { $form = _system_settings_form_automatic_defaults($form); @@ -2600,7 +2602,10 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL, $form['description'] = array('#markup' => $description); $form[$name] = array('#type' => 'hidden', '#value' => 1); - $form['actions'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>'); + $form['actions'] = array( + '#type' => 'container', + '#attributes' => array('class' => array('form-actions', 'container-inline')), + ); $form['actions']['submit'] = array('#type' => 'submit', '#value' => $yes ? $yes : t('Confirm')); $form['actions']['cancel'] = array('#markup' => $cancel); // By default, render the form using theme_confirm_form(). |