In hook_install() of your module define the appropriate array (name, label, pattern, module, hidden) and add it to default date settings with: system_date_format_save($date_format)
Then add hook_uninstall() to remove the formats when the module is uninstalled.
Thanks!
I tested PayPal WPS (since I also use it in my Drupal 7 Commerce shop).
With the PayPal server SANDBOX mode (no real payment transaction, just simulated).
And everything...
Posted11 hours 19 min ago by (Peter.B.Eriksen) on:
Peter, I've done an initial port of Commerce PayPal. While I haven't tested it, I think it should work, as the module is not too complex.
https://github.com/backdrop-contrib/...
Posted13 hours 1 min ago by Alejandro Cremaschi (argiepiano) on:
Wow, THANK YOU!
I’ve been searching for this for months, and it’s been there all along—just extremely well hidden...
I immediately installed Commerce with the configuration of my...
Comments
Never mind, I figured it out.
In hook_install() of your module define the appropriate array (name, label, pattern, module, hidden) and add it to default date settings with: system_date_format_save($date_format)
Then add hook_uninstall() to remove the formats when the module is uninstalled.
I guess, my question is answered. ;)