O'Reilly logo

Drupal 7 Webform Cookbook by Douglas Vernon Denny

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

Creating the component module

The Webform API allows us to create custom components via Webform extension modules. We may be tempted to create our custom component within the existing sites/all/modules/webform/components folder, but that is tantamount to hacking Webform core and will create a maintenance headache for us in the future. Let's get the ball rolling and get our extension module properly set up.

How to do it...

Explanatory details on the steps that follow can be found in the recipe Changing Webform results defaults discussed in Chapter 3, Working with Submissions, and Defining custom option lists discussed in Chapter 6, Extending Webform, and in Chapter 8, Acting on Webform Submissions, where we created modules to extend Webform and ...

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