Commit cf869a43 authored by idebr's avatar idebr Committed by RenatoG

Issue #2286845 by idebr, jcnventura, RenatoG: Implement form '#type' =>...

Issue #2286845 by idebr, jcnventura, RenatoG: Implement form '#type' => 'actions' wrapper for themed forms
parent dc2fb0a9
...@@ -196,12 +196,16 @@ function print_mail_form_for_path($form, &$form_state, $path, $query = NULL, $us ...@@ -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['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', '#name' => 'submit',
'#type' => 'submit', '#type' => 'submit',
'#value' => t('Send email'), '#value' => t('Send email'),
); );
$form['btn_cancel'] = array( $form['actions']['cancel'] = array(
'#name' => 'cancel', '#name' => 'cancel',
'#type' => 'submit', '#type' => 'submit',
'#value' => t('Cancel'), '#value' => t('Cancel'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment