You are here

function webform_example_element_properties_webform_element_translatable_properties_alter in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_example_element_properties/webform_example_element_properties.module \webform_example_element_properties_webform_element_translatable_properties_alter()

Implements hook_webform_element_translatable_properties_alter().

File

modules/webform_example_element_properties/webform_example_element_properties.module, line 24
Provides an example that shows how to add custom properties to Webform elements.

Code

function webform_example_element_properties_webform_element_translatable_properties_alter(array &$properties, array &$definition) {

  // Make the custom data property translatable.
  $properties[] = 'custom_data';
}