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.
You may need to re-install your Backdrop site and restart the import after a failed import. While I've never used that module, rolling back the import may not be enough. I would be sure to have...
Posted2 days 3 hours ago by Alejandro Cremaschi (argiepiano) on:
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. ;)