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.
Thank you for your answer.
What I want to do is display usernames or user images in a menu, similar to many community websites.
The basic menu that Backdrop currently provides is a "...
Just go to the menu where you want to add your link.
Add your link and in the path search for "user". It's done.
No need to use a token.
Or perhaps this ? menu_attributes
Please can you provide more information about the use case for this and also a screenshot or mockup of what you are trying to achieve.
There is a request here (https://github.com/backdrop-...
Posted5 hours 17 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Oh thanx ! I had an "old" text format that I had disabled. I re-enabled this format in the field body with the permissions and the field comes back for editing.
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. ;)