0

Is there a way to have my blocks pre-assigned a region and also enabled / disabled in a profile installation? I don't want to go to the structure / block page and assign these blocks individually each time, but would rather have them setup on site installation.

0

1 Answer 1

0

You can use hook_block_info inside your custom module to add all of your blocks programmatically. Look at this SE Post for an example to use the hook_block_info to assign it to the right region and also enable/disable it by declaring status=>true/false.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.