function webform_test_options_webform_options_test_alter in Webform 8.5
Same name and namespace in other branches
- 6.x tests/modules/webform_test_options/webform_test_options.module \webform_test_options_webform_options_test_alter()
Implements hook_webform_options_WEBFORM_OPTIONS_ID_alter() for webform options test.
File
- tests/
modules/ webform_test_options/ webform_test_options.module, line 11 - Support module for webform that provides form alter hook for wizard cause tests.
Code
function webform_test_options_webform_options_test_alter(array &$options, array &$element) {
$options += [
'four' => t('Four'),
'five' => t('Five'),
'six' => t('Six'),
];
}