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

rszrama’s picture

From 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.

rszrama’s picture

Assigned: Unassigned » rszrama
rszrama’s picture

Status: Active » Fixed

Committed: 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? :-/

Status: Fixed » Closed (fixed)
Issue tags: -dcsprint3

Automatically closed -- issue fixed for 2 weeks with no activity.