Index: htmlbox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/htmlbox/htmlbox.module,v
retrieving revision 1.9.2.4
diff -u -p -r1.9.2.4 htmlbox.module
--- htmlbox.module 4 Nov 2008 17:23:32 -0000 1.9.2.4
+++ htmlbox.module 16 Feb 2010 18:21:19 -0000
@@ -301,8 +301,9 @@ function htmlbox_form_alter(&$form, $for
'taxonomy_form_term',
);
- if ($other_forms['any'] && $form['#id'] != 'node-form' && !in_array($form_id, $possible_forms)) {
+ if (!empty($other_forms['any']) && $form['#id'] != 'node-form' && !in_array($form_id, $possible_forms)) {
// Prepare the form for build to have all the names we need.
+ $form['#post'] = $_POST;
$built = form_builder($form_id, $form, $form_state);
$attach_to = _htmlbox_textarea_search($built);
}
@@ -312,6 +313,7 @@ function htmlbox_form_alter(&$form, $for
}
else {
// Prepare the form for build to have all the names we need.
+ $form['#post'] = $_POST;
$built = form_builder($form_id, $form, $form_state);
$attach_to = _htmlbox_textarea_search($built);
}
@@ -389,7 +391,7 @@ function htmlbox_footer() {
function htmlbox_theme($existing, $type, $theme, $path) {
return array(
'htmlbox_settings_item' => array(
- 'arguments' => array($buttons => array()),
+ 'arguments' => array('buttons' => array()),
),
);
}