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.
Hey,
that warning isn’t a flag stored per node—Drupal is doing a live check when you open the edit form. it takes the field’s current HTML and compares it to the CKEditor 5 allowlist (“...
It is a field containing a link to another site. 'Enlarge'? I set it to 200 chars, but I need more. Reason is to put all centers for one person into one field instead of an unsorted list....
Thanks Meaghan. I have solved this error. The issue was that after the upgrade, I re-enabled the civicrm related modules at a time that leads to the error. But after that I tried and re enabled...
Posted1 day 20 hours ago by Sudipto Kumar Mitra (sudipto68) 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. ;)