Articles


Drupal 7: How to add block settings and block content to the features?

Drupal 7: How to add block settings and block content to the features?



Posted byUttam Kotekar,30th Jul 2016

We all know about the feature module which enables the capture and management of features in Drupal. Here in this article we will go through how to add block content and its settings to the feature that are created via admin interface. Default features module doesn't provide block content and its settings to be added into the features. In order to add the block content and its settings into the feature, you need to enable Features extra module which contains module, FE Block module.

To start with, Enable Features extra and FE Block module. Create a block via admin interface, now you will see an extra field at the top called "Machine name" which is provided by FE block module. Fill the machine name, body content and save it.

Go the admin features page (/admin/structure/features), Click on the tab "Create Feature" tab. Now you will see an new fieldset that is "Block contents (boxes) () (fe_block_boxes)" and "Block settings () (fe_block_settings)". Click on it, under that list you will see you block that is create via admin interface. Please see the screenshot.

 

Categories