O'Reilly logo

Migrating to Drupal 7 by Trevor James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overriding your feature

Our feature is now in Default status. This means it matches the module codebase. But what will happen if we need to add a field or tweak a field in our content type? This is the whole point of using Features. The Features module will detect this change for us and let us know that our module is overridden. Let's try it.

First let's make a change to our Fire Department content type. Load and edit your content type by going to Structure | Content Types | Fire Department. We're going to make a few changes, listed as follows:

  1. First change the Preview before Submitting setting to Disabled.
  2. Under Publishing options uncheck the Promoted to Front Page checkbox.
  3. Save your content type.
  4. Now go to Manage Fields. Add a brand new field called ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required