Working with the Webform API (version 3.x only)
Last updated on
30 April 2025
Webform includes documentation on all the public hooks it provides for other modules to utilize. The file webform_hooks.php or webform.api.php file included with Webform is divided into two sections. The first section defines the hooks available to module developers. The second section provides the definition for a sample webform component. This is useful when you want to create a component type that doesn't already exist.
Note: Most of the hooks had previously been listed here but have been removed due to technical inaccuracies. The best thing is to read the documentation directly from the Webform source. Just read the source of the file directly.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion