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

Editing components

In the previous section we defined some default attributes of our IMEI component. Now we are going to define the actual component edit page using the Drupal Form API. This is the user interface that website administrators will use to change the defaults we specified previously.

Note that we are not defining the entire component edit page here. The data in this function will be utilized to supplement the default component edit form which already includes the Label and Field Key textfields. We are only specifying the additional fields required for the specific setup of our IMEI components.

How to do it...

Let us add the edit form functionality to our webform_imei.module file:

/** * Implements _webform_edit_component(). */ function ...

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