Webform Module Hooks

Webform's hooks enable other modules to intercept events within Webform, such as the completion of a submission or adding validation. Webform's hooks also allow other modules to provide additional components for use within forms.

Functions

Namesort descending Location Description
hook_webform_component_delete modules/contrib/webform/webform.api.php Respond to a Webform component being deleted.
hook_webform_component_info modules/contrib/webform/webform.api.php Define components to Webform.
hook_webform_component_info_alter modules/contrib/webform/webform.api.php Alter the list of available Webform components.
hook_webform_component_insert modules/contrib/webform/webform.api.php Respond to a Webform component being inserted into the database.
hook_webform_component_load modules/contrib/webform/webform.api.php Modify a loaded Webform component.
hook_webform_component_presave modules/contrib/webform/webform.api.php Modify a Webform component before it is saved to the database.
hook_webform_component_update modules/contrib/webform/webform.api.php Respond to a Webform component being updated in the database.
hook_webform_results_access modules/contrib/webform/webform.api.php Determine if a user has access to see the results of a webform.
hook_webform_select_options_info modules/contrib/webform/webform.api.php Define callbacks that can be used as select list options.
hook_webform_select_options_info_alter modules/contrib/webform/webform.api.php Alter the list of select list options provided by Webform and other modules.
hook_webform_submission_access modules/contrib/webform/webform.api.php Alter access to a Webform submission.
hook_webform_submission_actions modules/contrib/webform/webform.api.php Provide a list of actions that can be executed on a submission.
hook_webform_submission_delete modules/contrib/webform/webform.api.php Respond to a Webform submission being deleted.
hook_webform_submission_insert modules/contrib/webform/webform.api.php Respond to a Webform submission being inserted.
hook_webform_submission_load modules/contrib/webform/webform.api.php Respond to the loading of Webform submissions.
hook_webform_submission_presave modules/contrib/webform/webform.api.php Modify a Webform submission, prior to saving it in the database.
hook_webform_submission_render_alter modules/contrib/webform/webform.api.php Alter the display of a Webform submission.
hook_webform_submission_update modules/contrib/webform/webform.api.php Respond to a Webform submission being updated.
webform_options_example modules/contrib/webform/webform.api.php This is an example function to demonstrate a webform options callback.
_webform_attachments_component modules/contrib/webform/webform.api.php Return an array of files associated with the component.

File

modules/contrib/webform/webform.api.php, line 8
Sample hooks demonstrating usage in Webform.