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.
Hi @Gnome and welcome to Backdrop
When I create custom layout templates I put them in /layouts/custom/my_layout
Note: you can split modules and layouts between contrib and custom...
Posted12 hours 15 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View.
https://drupal.stackexchange...
Posted1 day 20 hours ago by Alejandro Cremaschi (argiepiano) on:
After alot of trials, i have done the obvious and translated the whole block for different languages with each property condition as follows:
->propertyCondition('langcode', 'en...
Thanks so much! It's working now:
I was able to transfer the docroot files to the containing directory without the need for a second database or any manual configuration export/import/sync...
Ah, I see. Sorry, I hadn't clicked the link and assumed it was the instructions for upgrading from Drupal 7.
If you are simply copying a site from one location on a server to another, the...
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. ;)