From 9e237fe221a07acfffdd71ed0d2822699f37e1ad Mon Sep 17 00:00:00 2001
From: Arshad Chummun <arshad@chummun.com>
Date: Sat, 12 Jan 2013 21:31:18 +0400
Subject: [PATCH] Wrap buttons in actions array

---
 apps.profile.inc |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/apps.profile.inc b/apps.profile.inc
index 523af75..22b4dc9 100644
--- a/apps.profile.inc
+++ b/apps.profile.inc
@@ -82,6 +82,9 @@ function apps_profile_apps_select_form($form, $form_state, &$install_state) {
     $form['info'] = array(
       '#markup' => t('<h2>Error</h2><p>Unable to connect to Apps Server.</p><p>Click "Continue" to finish the installation. You can either fix your internet connection and try the installation again or install apps later from the apps config page.</p>'),
     );
+    $form['actions'] = array(
+      '#type' => 'actions',
+    );
     $form['actions']['submit'] = array(
       '#type' => 'submit',
       '#value' => t('Continue'),
@@ -133,6 +136,10 @@ function apps_profile_apps_select_form($form, $form_state, &$install_state) {
       '#default_value' => TRUE,
       '#description' => t('By selecting this box default content will be installed for each app. Without default content the site may look empty before you start adding to it. You can remove the default content later by going to the apps config page.'),
     );
+    
+    $form['actions'] = array(
+      '#type' => 'actions',
+    );
 
     $form['actions']['submit'] = array(
       '#type' => 'submit',
@@ -501,7 +508,11 @@ function apps_install_verify() {
 
   $form['#process'] = array('apps_install_verify_process');
 
-  $form['continue'] = array(
+  $form['actions'] = array(
+    '#type' => 'actions',
+  );
+
+  $form['actions']['continue'] = array(
     '#type' => 'submit',
     '#value' => t('Continue'),
     '#weight' => 20,
-- 
1.7.9

