Commit 21087fc9 authored by Dries's avatar Dries
Browse files

- Patch #716558 by Dave Reid: use ['actions'] in contact forms.

parent 833ab255
......@@ -39,7 +39,12 @@ function contact_category_list() {
));
}
return theme('table', array('header' => $header, 'rows' => $rows));
$build['category_table'] = array(
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
);
return $build;
}
/**
......@@ -97,7 +102,10 @@ function contact_category_edit_form($form, &$form_state, array $category = array
'#type' => 'value',
'#value' => $category['cid'],
);
$form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions')));
$form['actions'] = array(
'#type' => 'container',
'#attributes' => array('class' => array('form-actions')),
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
......
......@@ -101,7 +101,10 @@ function contact_site_form($form, &$form_state) {
'#title' => t('Send yourself a copy.'),
'#access' => $user->uid,
);
$form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions')));
$form['actions'] = array(
'#type' => 'container',
'#attributes' => array('class' => array('form-actions')),
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Send message'),
......@@ -232,7 +235,11 @@ function contact_personal_form($form, &$form_state, $recipient) {
'#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'),
);
......
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