Index: ahah_helper.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ahah_helper/ahah_helper.module,v retrieving revision 1.1 diff -u -p -r1.1 ahah_helper.module --- ahah_helper.module 29 Aug 2008 18:58:21 -0000 1.1 +++ ahah_helper.module 19 Sep 2008 14:08:56 -0000 @@ -119,7 +119,7 @@ function ahah_helper_render($form_item_t // Rebuild the form. $args = $form['#parameters']; array_shift($args); // We don't have to pass the form id again. - $form = drupal_update_form($form_id, &$form_state, $args, $form_build_id, $form_item_to_render, $existing_form_items); + $form = drupal_update_form($form_id, $form_state, $args, $form_build_id, $form_item_to_render, $existing_form_items); $form['#programmed'] = FALSE; // We *do* save the form to the cache, so modules that use "D6 core style" @@ -176,7 +176,7 @@ function drupal_update_form($form_id, &$ // Build the form, so we can render it, or continue processing it (call // validate and/or submit handlers) - $form = form_builder($form_id, $form, &$form_state); + $form = form_builder($form_id, $form, $form_state); // Disable validation for form items that are being displayed for the first // time. @@ -192,7 +192,7 @@ function drupal_update_form($form_id, &$ // trigger partial updates of the form, not for an actual submit. $errors = _ahah_helper_collect_relevant_errors(_ahah_helper_get_form_item($form, $form_item_to_render)); if (!$errors && count($form_state['submit_handlers'])) { - form_execute_handlers('submit', $form, &$form_state); + form_execute_handlers('submit', $form, $form_state); $form = call_user_func_array('drupal_retrieve_form', $args); @@ -209,7 +209,7 @@ function drupal_update_form($form_id, &$ $form['#programmed'] = TRUE; // Build the form. - $form = form_builder($form_id, $form, &$form_state); + $form = form_builder($form_id, $form, $form_state); } return $form; @@ -252,7 +252,7 @@ function &_ahah_helper_get_form_item(&$f if (count($parents)) { $parent = array_shift($parents); if (isset($form[$parent])) { - return _ahah_helper_get_form_item(&$form[$parent], $parents); + return _ahah_helper_get_form_item($form[$parent], $parents); } else { return NULL; @@ -278,7 +278,7 @@ function &_ahah_helper_get_form_item(&$f function _ahah_helper_detect_form_items($form, &$existing_form_items) { foreach(element_children($form) as $child) { $existing_form_items[$child]['exists'] = TRUE; - _ahah_helper_detect_form_items($form[$child], &$existing_form_items[$child]); + _ahah_helper_detect_form_items($form[$child], $existing_form_items[$child]); } } @@ -298,7 +298,7 @@ function _ahah_helper_new_form_items_dis $form[$child]['#validated'] = TRUE; $form[$child]['#first_time'] = TRUE; } - _ahah_helper_new_form_items_disable_validation(&$form[$child], $existing_form_items[$child]); + _ahah_helper_new_form_items_disable_validation($form[$child], $existing_form_items[$child]); } } Index: ahah_helper_demo.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ahah_helper/ahah_helper_demo.module,v retrieving revision 1.1 diff -u -p -r1.1 ahah_helper_demo.module --- ahah_helper_demo.module 29 Aug 2008 18:58:21 -0000 1.1 +++ ahah_helper_demo.module 19 Sep 2008 14:08:32 -0000 @@ -55,7 +55,7 @@ function ahah_helper_demo_form($form_sta ), ); $form['billing_info']['update_usage'] = array( - '#type' => 'submit', + '#type' => 'submit', '#value' => t('Update usage'), // Note that we can simply use the generic submit callback provided by the // ahah_helper module here! @@ -131,12 +131,12 @@ function ahah_helper_demo_form($form_sta '#maxlength' => 255, '#default_value' => $form_state['values']['billing_info']['country'], ); - + $form['save'] = array( - '#type' => 'submit', + '#type' => 'submit', '#value' => t('Save'), ); - + return $form; }