Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
would be nice if we can have different code generators.
if i find the time i might implement that in the next days.
the idea of a *very* simple pluggable api:
* existing code generation goes into a separeate function
* code generation is announced by hook_commerce_coupon_code_generator_info() which gives a callback
* code generator is chosen globally (for now)
* commerce_coupon_generate_coupon_code() calls this callback with $codelength as argument
comments?