diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-27 01:11:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-27 01:11:17 +0000 |
commit | e29eb4dd129ca772da1d259fa736cf3a34350479 (patch) | |
tree | 1755aa362d0812ce6fce47ffb56eb57180a5fe63 /modules | |
parent | f40a5c18ae07790757b5ae4025d7e97bdf6f835b (diff) | |
download | brdo-e29eb4dd129ca772da1d259fa736cf3a34350479.tar.gz brdo-e29eb4dd129ca772da1d259fa736cf3a34350479.tar.bz2 |
- Patch #922634 by sun: odd form actions in confirm_form().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.module | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 3e6954f06..22e270383 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2777,7 +2777,6 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL, else { $options = array('path' => $path); } - $cancel = l($no ? $no : t('Cancel'), $options['path'], $options); drupal_set_title($question, PASS_THROUGH); @@ -2785,12 +2784,17 @@ 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( - '#type' => 'actions', - '#attributes' => array('class' => array('container-inline')), + $form['actions'] = array('#type' => 'actions'); + $form['actions']['submit'] = array( + '#type' => 'submit', + '#value' => $yes ? $yes : t('Confirm'), + ); + $form['actions']['cancel'] = array( + '#type' => 'link', + '#title' => $no ? $no : t('Cancel'), + '#href' => $options['path'], + '#options' => $options, ); - $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(). if (!isset($form['#theme'])) { $form['#theme'] = 'confirm_form'; |