Sample Webform Component in Webform 7.4
Same name and namespace in other branches
- 6.3 webform.api.php \webform_component
- 7.3 webform.api.php \webform_component
In each of these examples, the word "component" should be replaced with the, name of the component type (such as textfield or select). These are not actual hooks, but instead samples of how Webform integrates with its own built-in components.
File
- ./
webform.api.php, line 868 - Sample hooks demonstrating usage in Webform.
Functions
Name![]() |
Location | Description |
---|---|---|
callback_webfom_conditional_comparison_operator |
./ |
Evaluate the operator for a given set of values. |
callback_webform_conditional_rule_value_form |
./ |
Define a form element that configures your operator. |
hook_webform_component_display_alter |
./ |
Allow modules to modify a "display only" webform component. |
hook_webform_component_render_alter |
./ |
Allow modules to modify a webform component that will be rendered in a form. |
hook_webform_conditional_operators_alter |
./ |
Alter the list of operators and conditional types. |
hook_webform_conditional_operator_info |
./ |
Declare conditional types and their operators. |
hook_webform_exporters |
./ |
Define a list of webform exporters. |
hook_webform_exporters_alter |
./ |
Modify the list of webform exporters definitions. |
hook_webform_html_capable_mail_systems_alter |
./ |
Modify the list of mail systems that are capable of sending HTML email. |
hook_webform_view_alter |
./ |
Modify the how a view was expanded to show all the components. |
_webform_action_set_component |
./ |
Performs the conditional action set on an implemented component. |
_webform_analysis_component |
./ |
Calculate and returns statistics about results for this component. |
_webform_csv_data_component |
./ |
Format the submitted data of a component for CSV downloading. |
_webform_csv_headers_component |
./ |
Return the header for this component to be displayed in a CSV file. |
_webform_defaults_component |
./ |
Specify the default properties of a component. |
_webform_delete_component |
./ |
Delete operation for a component or submission. |
_webform_display_component |
./ |
Display the result of a submission for a component. |
_webform_edit_component |
./ |
Generate the form for editing a component. |
_webform_help_component |
./ |
Module specific instance of hook_help(). |
_webform_render_component |
./ |
Render a Webform component to be part of a form. |
_webform_submit_component |
./ |
A hook for changing the input values before saving to the database. |
_webform_table_component |
./ |
Return the result of a component value for display in a table. |
_webform_theme_component |
./ |
Module specific instance of hook_theme(). |
_webform_view_field_component |
./ |
Fix the view field(s) that are automatically generated for number components. |