Experimenting with this and found that simply adding the .json file a config directory in the module seems to work, I assume the same might be true for themes.
Hi @DianeBAS
It doesn't look like there are any port requests for these modules and they do not appear in https://github.com/backdrop-contrib so it doesn't look like anybody has tried anything unless...
Thanks for those ideas. Here is what I'm doing now that works.
This adds the video_filter to the config file.
$format = filter_format_load('filtered_html');
$format->filters['video_filter'] = (...
The port of Organic Groups is within days (if not hours) of a beta release. Feel free to help test and report issues.
https://github.com/backdrop-contrib/og
I agree with BWPanda about the better way to add a filter. As for your general question on how to add an array to a config file (which gets stored as json), have you tried:
$config = config('...
I think that directly editing config is rarely, if ever, the best way to do something...
Perhaps try loading a format (with it's filters) using filter_format_load(), add the new filter array (by...
Posted21 hours 37 min ago by Peter Anderson (BWPanda) on:
Comments
Experimenting with this and found that simply adding the .json file a config directory in the module seems to work, I assume the same might be true for themes.