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/shortcut | |
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/shortcut')
-rw-r--r-- | modules/shortcut/shortcut.admin.inc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/modules/shortcut/shortcut.admin.inc b/modules/shortcut/shortcut.admin.inc index 2db30f220..e86d8f50f 100644 --- a/modules/shortcut/shortcut.admin.inc +++ b/modules/shortcut/shortcut.admin.inc @@ -85,7 +85,7 @@ function shortcut_set_switch($form, &$form_state, $account = NULL) { 'js' => array(drupal_get_path('module', 'shortcut') . '/shortcut.admin.js'), ); - $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions'))); + $form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Change set'), @@ -193,7 +193,7 @@ function shortcut_set_add_form($form, &$form_state) { '#description' => t('The new set is created by copying items from your default shortcut set.'), ); - $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions'))); + $form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Create new set'), @@ -269,7 +269,7 @@ function shortcut_set_customize($form, &$form_state, $shortcut_set) { 'js' => array(drupal_get_path('module', 'shortcut') . '/shortcut.admin.js'), ); - $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions'))); + $form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Save changes'), @@ -453,7 +453,7 @@ function _shortcut_link_form_elements($shortcut_link = NULL) { $form['#validate'][] = 'shortcut_link_edit_validate'; - $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions'))); + $form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Save'), @@ -562,11 +562,7 @@ function shortcut_set_edit_form($form, &$form_state, $shortcut_set) { '#required' => TRUE, '#weight' => -5, ); - $form['actions'] = array( - '#type' => 'container', - '#attributes' => array('class' => array('form-actions')), - '#weight' => 100, - ); + $form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Save'), |