summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-24 14:49:14 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-24 14:49:14 +0000
commit45f4a1e166d090e23cb385c3238835fce61d1607 (patch)
tree63384d78144e0caee7c6700c44e444a70fc58845 /modules/poll/poll.module
parent3e547ae045849264745f8cc456a0f379246060ea (diff)
downloadbrdo-45f4a1e166d090e23cb385c3238835fce61d1607.tar.gz
brdo-45f4a1e166d090e23cb385c3238835fce61d1607.tar.bz2
- Patch #482816 by sun, Rob Loach: make a consistent wrapper around submit buttons.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 68c4627bd..729a51dc9 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -894,7 +894,8 @@ function poll_cancel_form($form, &$form_state, $nid) {
// Store the nid so we can get to it in submit functions.
$form['#nid'] = $nid;
- $form['submit'] = array(
+ $form['actions'] = array('#type' => 'actions');
+ $form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Cancel your vote'),
'#submit' => array('poll_cancel')