You are here

function webform_element_info_alter in Webform 8.5

Same name and namespace in other branches
  1. 6.x webform.module \webform_element_info_alter()

Implements hook_element_info_alter().

File

./webform.module, line 942
Enables the creation of webforms and questionnaires.

Code

function webform_element_info_alter(array &$info) {
  $info['checkboxes']['#process'][] = 'webform_process_options';
  $info['radios']['#process'][] = 'webform_process_options';
  $info['webform_entity_checkboxes']['#process'][] = 'webform_process_options';
  $info['webform_entity_radios']['#process'][] = 'webform_process_options';
}