summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoridebr2018-04-13 03:58:21 (GMT)
committerRenato Goncalves H2018-04-13 03:58:21 (GMT)
commitcf869a4377b554e3016f4bee5bcd1dd73b20773f (patch)
treed9a1343d25b54baf1d3f0293d6276b89e1cd7094
parentdc2fb0a9717db2b2d07dcc10650759434ad91431 (diff)
Issue #2286845 by idebr, jcnventura, RenatoG: Implement form '#type' => 'actions' wrapper for themed forms
-rw-r--r--print_mail/print_mail.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/print_mail/print_mail.inc b/print_mail/print_mail.inc
index 6db194e..afe185c 100644
--- a/print_mail/print_mail.inc
+++ b/print_mail/print_mail.inc
@@ -196,12 +196,16 @@ function print_mail_form_for_path($form, &$form_state, $path, $query = NULL, $us
$form['chk_teaser'] = array('#type' => 'value', '#value' => $print_mail_teaser_default);
}
- $form['btn_submit'] = array(
+ $form['actions'] = array(
+ '#type' => 'actions',
+ );
+
+ $form['actions']['submit'] = array(
'#name' => 'submit',
'#type' => 'submit',
'#value' => t('Send email'),
);
- $form['btn_cancel'] = array(
+ $form['actions']['cancel'] = array(
'#name' => 'cancel',
'#type' => 'submit',
'#value' => t('Cancel'),