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.
Heya,
I'm in the final stages of preparing some Fivestar Module (fivestar) documentation.
I am toying with the idea of publishing as an e-book.
All told, I think the e-...
Posted7 hours 27 min ago by Graham Leach (Graham Leach) on:
Heya @DrAlbany,
Yes, if you could add me as a contributor that would be great.
I'm doing a bunch of "triage" on my site these days, fixing stuff and (slowly)...
Posted22 hours 52 min ago by Graham Leach (Graham Leach) on:
Wow!
@bugfolder
What a fantastic response! I am so grateful for the effort you obviously put in.
I just wanted to give you some FF on the sheer size and depth of...
Posted22 hours 56 min ago by Graham Leach (Graham Leach) on:
Hi...,
Our ubercart.dev site is a work in progress...
I'm happy to add you as a contributor etc...
UC is something I use and want to help the documentation live 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. ;)