O'Reilly logo

The Definitive Guide to Drupal 7 by Károly Négyesi, Claudina Sarahe, Dani Nordin, Ed Carlevale, Benjamin Melançon, Amye Scavarda, Ryan Szrama, Kay VanValkenburgh, Brian Travis, Greg Anderson, Robert Douglass, Roy Scholten, Peter Wolanin, Susan Stewart, Mike Gifford, Forest Mars, Sam Boyer, Florian Lorétan, Allie Micka, Jake Strawn, Stefan Freudenberg, Dmitri Gaskin, Bojhan Somers, Albert Albala, George Cassie, Kasey Qynn Dolin, Jacine Luisi, Dan Hakimzadeh, Robin Monks, Nathaniel Catchpole, Stéphane Corlosquet, Mike Ryan, Michelle Lauer, Greg Stout

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

C H A P T E R  20

images

Refining Your Module

by Benjamin Melançon

Chapters 18 and 19 have shown you how to write your module, but there's more to a module than just the code you've written. In this chapter you'll see how to:

  • Create a configuration page and settings form.
  • Refine your module into a drupal.org-worthy module, including fixing errors and reviewing for coding standards.

Creating a Configuration Page for Your Module

X-ray module could get away with setting sensible defaults and having no configuration page. The design philosophy of Don't Make Me Think (in general, but in particular the now-classic book of that name by Steve Krug) argues ...

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