In the checkout pane definition, instead of forcing callback specification create a convention for default callback names. These can be overridden by the presence of a callback in the array.
In the checkout pane definition, instead of forcing callback specification create a convention for default callback names. These can be overridden by the presence of a callback in the array.
Comments
Comment #1
rszrama commentedFrom the Rules API:
- callbacks: An array which allows to set specific function callbacks for the action. The default for each callback is the actions base appended by '_' and the callback name.
Comment #2
rszrama commentedComment #3
rszrama commentedCommitted: http://github.com/rszrama/drupalcommerce/commit/e690325c0438e976af2ed990...
Basically, I added the same $checkout_pane->base property that payment methods are using and construct a default array of callback functions using base + callback. This means I had to change some function names to *_form to *_checkout_form... because for some reason the callbacks weren't using the name of the callback. Who knows why? :-/