O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

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

Time for action — developing a custom module for a compound NutritionInformation field

Rather than adding the code to create this compound field to our existing module, we are going to create a new module, as it is possible that it is something that could be useful to the Drupal community as a whole, and we may want to eventually contribute it to drupal.org.

  1. In Aptana Studio, create a new folder named nutritioninfo in the /sites/all/modules/custom directory.
  2. Create the .module, .info, and .install files with the same name as the folder - nutritioninfo, and you should have a folder that looks similar to the following screenshot:
    Time for action — developing a custom module for a compound NutritionInformation field
  3. Now, open the nutrtioninfo.info ...

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