I am experimenting with recipes. In my recipe, I create a view with a block and was hoping to add that block to a layout during the install process.
Here is the solution I found.
$layout = layout_load('<machine-name-layout>');
$layout->addBlock('<module-that-created-block>', '<machine-name-of-block>', '<region-to-insert-block>');
$layout->save();
Recent comments
Thank you, this is a very useful workaround for preparing a clean import list. One concern remains, however: if Simplenews 1.x-1.2.3 still treats blocked user accounts as invalid...
Re-enable Simplenews newsletter subscriptions that had been erroneously disabled
@Amilenkov, I have an idea for your use case where you want to avoid re-subscribing people who have explicitly opted out: Build a view of simplenews subscriptions, and filter by Status (...
Re-enable Simplenews newsletter subscriptions that had been erroneously disabled
"modules to help someone monetise their own website"
How to monetize a Backdrop site
Hello. Welcome to Backdrop Some of the things you are asking for can be done with Ubercart. Ubercart out of the box supports buying a role, which could satisfy your paid memberships...
How to monetize a Backdrop site
Hi..., And welcome to our Backdrop community. Do you mean modules to help someone monetise their own website, or the official backdrop website?
How to monetize a Backdrop site