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.
Well your second Idea seems to have done the trick!
So Simple!!!!! I can use this all over the place!!!
Big Hug, and Thanks a Million, @yorkshirepudding !!!
Posted2 days 20 hours ago by Francis Greaves (themetman) on:
Hi Francis. I can try to help. First things first, is your custom code that adds these files to your server telling Backdrop about them so they become managed files? That would be needed to do a...
Posted2 days 20 hours ago by Martin Price (yorkshirepudding) 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. ;)