2

Lost my argument in ahah-helper-module

http://drupal.org

I build a multi-step-form with the help of the ctools-form-wizard as described here: http://www.nicklewis.org/using-chaos-tools-form-wizard-build-multistep-forms-drupal-6.

Now I want to spice up a few parts with AHAH. I tried to code everything myself following an ahah-example but then discovered the ahah-helper-module (http://drupal.org/project/ahah_helper) which sounded and looked really great. Less work more fun ... yay.

And here's the problem. The module expects that the function that builds the form elements just has one argument. As in the example.

<?php
function ahah_helper_demo_form($form_state) {
  ...
  ahah_helper_register($form, $form_state);
  ...
}
?>

But my multi-step function has two values.

<?php
function mahnung_init_info_form(&$form, &$form_state)) {
  ...
  ahah_helper_register($form, $form_state);
  ...
}
?>

So when I call ahah_helper_register(); somehow one value gets lost an I get: warning: Missing argument 2 for mahnung_init_info_form()

I can't find the place in ahah_helper-module where the variables are passed or where the form-building function is called but if got the feeling that I just have to add the missing variable somewhere to get this working which would save me a great amount of time.

If anyone is familiar with ahah_helper pls help me out.

Thx in advance.

Read »
Created by Dplanet 1 year 27 weeks ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Best published scoops - Modules

Tags for Lost my argument in ahah-helper-module

Recent comments