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 Meaghan. I have solved this error. The issue was that after the upgrade, I re-enabled the civicrm related modules at a time that leads to the error. But after that I tried and re enabled...
Posted6 hours 45 min ago by Sudipto Kumar Mitra (sudipto68) on:
Thanks for the quick response. Unfortunately I can't offer a PR - I'm not a coder, I'd say a designer and copywriter who also develops websites.
I'm not sure I can formulate the problem...
Posted19 hours 29 min ago by Antony Milenkov (amilenkov) on:
I didn't know there were so many untranslated strings in ubercart. Maybe the easiest would be to make a PR to ubercart to get those translated. Assuming there are no problems with that. ...
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. ;)