Published on March 13, 2014
FEATURES MODULE Drupal 7 Webinar
Prasad Shirgaonkar Curriculum Developer, Acquia Learning Services" • Designs and conducts Training programs on Drupal and Acquia Products! • Over 20 years of Industry experience, 7 years on Drupal! • In past, worked on 200+ Drupal projects @prasadshir
The Conﬁg Management Challenge How to copy or move site configurations between environments?
Drupal Development Workflow GIT$ DB$ CODE$ DB$ CODE$ DB$ CODE$
Drupal Site Components Code% • Modules% • Themes% Conﬁg% ura3ons% • Content%Types% • Views% Content% • Nodes% • Terms%
Drupal Site Components Code Files Database Database Code% • Modules% • Themes% Conﬁg% ura3ons% • Content%Types% • Views% Content% • Nodes% • Terms%
Initial Development DB# CODE# GIT# DB# CODE# DB# CODE# DB# CODE# In#Sync!#
Continuous Workflow DB# CODE# DB# CODE# Changed#
How do we manage site configurations?
Features There’s a module for that!
Features Module • Enables the capture and management of features in Drupal. ! • A feature is a collection of Drupal entities which taken together satisfy a certain use-case.! • Converts and stores site conﬁgurations in code rather than in DB!
Features Applications • Move your site conﬁgurations from database to code making them easier to • Move between environments • Check-in in a version control system • Distribute independently as ‘features’ and re-use across diﬀerent sites
More Discussion Understanding intricacies and extending Features
Features Terminology • Revert • Changes your site conﬁguration in DB to match up with the deﬁnitions in the feature module code. • Code —> DB ! • Update • Produces a modiﬁed version of your feature module code, which matches up with the conﬁguration found in the DB. • DB —> Code
What can be ‘feature’ized • Core • Content Types • Vocabularies • User Roles • Permissions • Fields • Text Formats • Menus • Image Styles • Contrib • Views • Panels • Rules • Contexts • Display Suite
What cannot be ‘feature’ized • Content • Nodes • Terms • Users • Custom Blocks
Advanced Usage • Strongarm Module • Use for exporting Variables like site name, slogan etc • Diﬀ Module • For comparing diﬀerence between code and DB • Drush Integration • features-list (ﬂ), features-components (fc), features-diﬀ (fd) • features-export (fe), features-revert (fr), features- update (fu)
Resources • Features Module on D.O. https://drupal.org/project/features • Features Module Documentation https://drupal.org/documentation/modules/ features • Strongarm Module https://drupal.org/project/strongarm • Diﬀ Module https://drupal.org/project/diﬀ
Q + A Your questions please!
A feature module is like any other Drupal module ... from updated modules and themes. Drupal 7. Features ... Drupal 7. Video introduction and tutorial by ...
Drupal 7 Tutorial: Features Module ... Acquia Learning Services for a step-by-step introduction to Features in Drupal 7. ... (Drupal Tutorial ...
... Acquia Learning Services for a step-by-step introduction to Features in Drupal 7. Features helps you package up configuration so you can move it more ...
Want to watch this again later? Sign in to add this video to a playlist. This tutorial shows you how to make modules out of your sites features ...
This tutorial describes how to create a module for Drupal 7. If your goal is to convert a module from Drupal 6 or earlier to Drupal 7, see: Updating your ...
The features module enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together satisfy a ...
An Introduction to the Drupal Features Module . ... Using the Views Slideshow Module in Drupal 7. If you want to follow this Features tutorial exactly, ...
Daily Dose of Drupal episode 2 looks at the Drupal 7 Features module and how it can be used to easily deploy common configurations across multiple Drupal ...
In Drupal 7 New Features, ... and administer blocks all with a single click, and all without adding the modules that Drupal 6 required. ...