Skip to content

Instantly share code, notes, and snippets.

@danny-englander
Last active December 22, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danny-englander/6406090 to your computer and use it in GitHub Desktop.
Save danny-englander/6406090 to your computer and use it in GitHub Desktop.
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