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 module

In order to have a module that Drupal core can implement on our site we need just three basic things:

  • A directory to store our module files
  • A module info file which supplies information about our module to Drupal
  • The module program code in a module file

These steps have been covered in greater detail in earlier chapters, so we'll just get on with them here.

How to do it...

  1. Create a directory named webform_custom_action within sites/all/modules so that we have sites/all/modules/webform_custom_action.
  2. Within this new directory we create a file called webform_custom_action.info with the following code:
    name = Webform Custom Action description = Custom actions for Webform submissions. core = 7.x package = Webform dependencies[] = webform ...

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