diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-24 14:49:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-24 14:49:14 +0000 |
commit | 45f4a1e166d090e23cb385c3238835fce61d1607 (patch) | |
tree | 63384d78144e0caee7c6700c44e444a70fc58845 /modules/update | |
parent | 3e547ae045849264745f8cc456a0f379246060ea (diff) | |
download | brdo-45f4a1e166d090e23cb385c3238835fce61d1607.tar.gz brdo-45f4a1e166d090e23cb385c3238835fce61d1607.tar.bz2 |
- Patch #482816 by sun, Rob Loach: make a consistent wrapper around submit buttons.
Diffstat (limited to 'modules/update')
-rw-r--r-- | modules/update/update.manager.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/update/update.manager.inc b/modules/update/update.manager.inc index 415a4c3a7..48f88d07e 100644 --- a/modules/update/update.manager.inc +++ b/modules/update/update.manager.inc @@ -230,10 +230,10 @@ function update_manager_update_form($form, $form_state = array(), $context) { // If either table has been printed yet, we need a submit button and to // validate the checkboxes. if (!empty($projects['enabled']) || !empty($projects['disabled'])) { - $form['submit'] = array( + $form['actions'] = array('#type' => 'actions'); + $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Download these updates'), - '#weight' => 10, ); $form['#validate'][] = 'update_manager_update_form_validate'; } @@ -245,7 +245,7 @@ function update_manager_update_form($form, $form_state = array(), $context) { '#type' => 'markup', '#markup' => theme('table', array('header' => $headers, 'rows' => $projects['manual'])), '#prefix' => $prefix, - '#weight' => 20, + '#weight' => 120, ); } @@ -365,10 +365,10 @@ function update_manager_update_ready_form($form, &$form_state) { '#default_value' => TRUE, ); - $form['submit'] = array( + $form['actions'] = array('#type' => 'actions'); + $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Continue'), - '#weight' => 100, ); return $form; @@ -491,7 +491,8 @@ function update_manager_install_form($form, &$form_state, $context) { '#description' => t('For example: %filename from your local computer', array('%filename' => 'name.tar.gz')), ); - $form['submit'] = array( + $form['actions'] = array('#type' => 'actions'); + $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Install'), ); |