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

A more in-depth look at the Webform module

As we saw in the previous section, our Webform-based contact form is very similar to the core contact form. However, it doesn't include the checkbox to allow visitors to have a copy of the e-mail sent to them, and it doesn't live at the /contact path. Most importantly, especially in regards the underlying HTML5 theme of this book, the Your e-mail address field is of type text, and not of type email as it is with the core contact form.

<input class="email form-text required" type="text" id= "edit-submitted-your-e-mail-address" name= "submitted[your_e_mail_address]" value="admin@localhost.org" size="60" maxlength="128">

The HTML5 Tools module that we installed in Chapter 3 uses hook_form_FORM_ID_alter

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