From ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 3 Jan 2010 21:01:04 +0000 Subject: #482816 by sun and Rob Loach: Add a consistent wrapper around submit buttons. --- modules/contact/contact.admin.inc | 3 ++- modules/contact/contact.pages.inc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/contact') diff --git a/modules/contact/contact.admin.inc b/modules/contact/contact.admin.inc index 929d5ac12..585d5f8a0 100644 --- a/modules/contact/contact.admin.inc +++ b/modules/contact/contact.admin.inc @@ -97,7 +97,8 @@ function contact_category_edit_form($form, &$form_state, array $category = array '#type' => 'value', '#value' => $category['cid'], ); - $form['submit'] = array( + $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions'))); + $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Save'), ); diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index 3dd4c3e47..17e1bf1bc 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -101,7 +101,8 @@ function contact_site_form($form, &$form_state) { '#title' => t('Send yourself a copy.'), '#access' => $user->uid, ); - $form['submit'] = array( + $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions'))); + $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Send message'), ); -- cgit v1.2.3