summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-24 14:49:14 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-24 14:49:14 +0000
commit45f4a1e166d090e23cb385c3238835fce61d1607 (patch)
tree63384d78144e0caee7c6700c44e444a70fc58845 /modules/system/system.module
parent3e547ae045849264745f8cc456a0f379246060ea (diff)
downloadbrdo-45f4a1e166d090e23cb385c3238835fce61d1607.tar.gz
brdo-45f4a1e166d090e23cb385c3238835fce61d1607.tar.bz2
- Patch #482816 by sun, Rob Loach: make a consistent wrapper around submit buttons.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 1e526fcb0..a33807dfd 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -472,6 +472,11 @@ function system_element_info() {
'#theme_wrappers' => array('container'),
'#process' => array('form_process_container'),
);
+ $types['actions'] = array(
+ '#theme_wrappers' => array('container'),
+ '#process' => array('form_process_actions', 'form_process_container'),
+ '#weight' => 100,
+ );
$types['token'] = array(
'#input' => TRUE,
@@ -2575,9 +2580,7 @@ function _system_settings_form_automatic_defaults($form) {
* @ingroup forms
*/
function system_settings_form($form, $automatic_defaults = TRUE) {
- $form['actions']['#type'] = 'container';
- $form['actions']['#attributes']['class'][] = 'form-actions';
- $form['actions']['#weight'] = 100;
+ $form['actions']['#type'] = 'actions';
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save configuration'));
if ($automatic_defaults) {
@@ -2690,8 +2693,8 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
$form[$name] = array('#type' => 'hidden', '#value' => 1);
$form['actions'] = array(
- '#type' => 'container',
- '#attributes' => array('class' => array('form-actions', 'container-inline')),
+ '#type' => 'actions',
+ '#attributes' => array('class' => array('container-inline')),
);
$form['actions']['submit'] = array('#type' => 'submit', '#value' => $yes ? $yes : t('Confirm'));
$form['actions']['cancel'] = array('#markup' => $cancel);