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.
Funnily we launched a new Dutch website this very week, milieucafe.nl
It is not a 'news' website but operates in the context of local government. The layout focuses on content instead of...
The answer is off topic, but I'll add a little.
1. Backend. Why you don't need links to other websites: Since you know the structure of your site and content, you can decide for...
Hi Chrys,
AI isn't always your best friend. A form alter hook is correct, but hiding by CSS isn't ideal.
You could look at how the TinyMCE integration does it, which provides hiding...
Hi zilvervos...,
Welcome back to Backdrop.
I've just started a new "news" website for a client, but it's at the very early stages. I'm hoping to have a soft launch in a couple...
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. ;)