summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano Sant'Ana2013-03-24 21:36:33 (GMT)
committer Fabiano Sant'Ana2013-03-24 21:36:49 (GMT)
commitf692ac8c7b765c41098c9fa27e81c439e50fbc2d (patch)
tree683be5875452d980beef47826ec42a7c89fdfe1a
parent1b903248c8196a32eaa9565915927b398a2a6f03 (diff)
Checks eiter the ['action'] has the type 'actions' before unsetting it
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 8a6b342..9749b47 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -14,7 +14,7 @@ function bootstrap_form_alter(&$form, &$form_state, $form_id) {
);
// Only wrap in container for certain form
- if (isset($form['#form_id']) && !in_array($form['#form_id'], $form_ids) && !isset($form['#node_edit_form'])) {
+ if (isset($form['#form_id']) && !in_array($form['#form_id'], $form_ids) && !isset($form['#node_edit_form']) && isset($form['actions']) && ($form['actions']['#type'] == 'actions')) {
$form['actions']['#theme_wrappers'] = array();
}
}