summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-21 06:58:31 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-21 06:58:31 +0000
commit4ab1238ce589ae5490855b12a444ebebb6505fb5 (patch)
tree22e57440aa4d3d55e9d2cb1f7c4787d7dfaa0fa2
parent173b1392564efe00b1e2f056bd9d5a64731526be (diff)
downloadbrdo-4ab1238ce589ae5490855b12a444ebebb6505fb5.tar.gz
brdo-4ab1238ce589ae5490855b12a444ebebb6505fb5.tar.bz2
#763400 by eojthebrave: Fixed Comment preview/submit button weight not set causing fields to appear below preview/submit button.
-rw-r--r--modules/comment/comment.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 63dd815c7..0814c2624 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1905,7 +1905,11 @@ function comment_form($form, &$form_state, $comment) {
// already previewing the submission. However, if there are form errors,
// we hide the save button no matter what, so that optional form elements
// (e.g., captchas) can be updated.
- $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions')));
+ $form['actions'] = array(
+ '#type' => 'container',
+ '#attributes' => array('class' => array('form-actions')),
+ '#weight' => 100,
+ );
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),