Community

Custom Dates (module) not recognized unless I save at /admin/settings/date-time/formats

I have a little Drupal 6 module that inputs some custom dates and after I enable the module, it all looks good from the UI at /admin/settings/date-time/formats However, if I try to leverage any of these new formats say from Views, even though I can see it in a Views custom date select menu, it still does not show up as my custom date when I preview my view.

Back on /admin/settings/date-time/formats, if I simply save the page nothing changes visually but then after that all my new custom dates from the module work in my Views. I am guessing there is a missing step in my module and I have wracked my brain for hours searching but have not even been able to come up with much code to use.

I looked for an API function for both hook_date_format_types and hook_date_formats() for Drupal 6 but could not find anything.

Note, I can get this to work using Strongarm and Features but I was hoping to have something more portable and freestanding...