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

Confirming the requested action

Our next bit of code is going to utilize the Drupal Form's API to build our action confirmation page. This simple page will ask the user whether they are sure they wish to decline a speaker's presentation. For reference purposes we will display the speaker's name, surname, and presentation title also. Users will then either click on the Decline speaker application confirmation button and decline the presentation, or they will click on Cancel to return to the submission View or Edit page they came from.

Confirming the requested action

How to do it...

Here is the function that will draw our confirmation form. Let us add the code to our webform_custom_action.module ...

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