Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Drupal boilerplate for updating Features when you are using Drush. These are examples of code you would add to your Feature's .info file. Once you add it, simply run drush --d fu my_feature and voila, all the magic happens.
;Content Type
features[node][] = event
;View
features[views_view][] = event_organizers
;User permission
features[user_permission][] = edit own event content
;Image style
features[image][] = adaptive
;Menu
features[menu_custom][] = my-menu
;Context
features[context][] = blog_post_detail_page
;Static bock using Features Extra
features[fe_block_boxes][] = my_custom_block
features[fe_block_settings][] = block-my_custom_block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment