summaryrefslogtreecommitdiff
path: root/modules/block/block.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-03 21:01:04 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-03 21:01:04 +0000
commitba6ef3017eb8ac1e6ccfd1ffebf97a476859315d (patch)
tree8d9f52358a4c0118b07a03d437c7d5dfe290999c /modules/block/block.admin.inc
parent8c4b6239b48a46e754e23a803f4a28745b4eb027 (diff)
downloadbrdo-ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d.tar.gz
brdo-ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d.tar.bz2
#482816 by sun and Rob Loach: Add a consistent wrapper around submit buttons.
Diffstat (limited to 'modules/block/block.admin.inc')
-rw-r--r--modules/block/block.admin.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc
index c25cbdc16..c75b9c3ee 100644
--- a/modules/block/block.admin.inc
+++ b/modules/block/block.admin.inc
@@ -102,7 +102,12 @@ function block_admin_display_form($form, &$form_state, $blocks, $theme) {
// Do not allow disabling the main system content block.
unset($form['system_main']['region']['#options'][BLOCK_REGION_NONE]);
- $form['submit'] = array(
+ $form['actions'] = array(
+ '#tree' => FALSE,
+ '#type' => 'container',
+ '#attributes' => array('class' => array('form-actions')),
+ );
+ $form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save blocks'),
);
@@ -363,7 +368,8 @@ function block_admin_configure($form, &$form_state, $module, $delta) {
'#default_value' => isset($block->custom) ? $block->custom : 0,
);
- $form['submit'] = array(
+ $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions')));
+ $form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save block'),
);