User: vauxia Branch: HEAD Date: Wed, 24 Nov 2010 22:26:31 +0000 Modified files: /modules/pay/includes/handlers pay_form.inc pay_method_gateway.inc Log message: #907518 Missing argument 2 for pay::form() IMPORTANT: Any pay_method subclass that implements form() will need to be amended thus: * The method should accept 2 parameters: form(&$form, &$form_state) * The method should not return a $form object. Instead, update $form directly. * To ensure that its values are found by the calling form handler, your method's form elements should be located under: $form[$this->pay_form->handler()]['pay_method'][$this->pmid] This means that your payment method can access/add/modify anything you want on the calling form, but you'll have to put something responsible under the array keys listed above in order for a payment to be processed. pay_method_gateway.inc includes these changes, and is a good place to look. Currently, most existing pay_method classes do not override pay_method:form, and do not need to be changed. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/pay/includes/handl... http://cvs.drupal.org/diff.php?path=contributions/modules/pay/includes/handl...