function _yamlform_update_8044 in YAML Form 8
Change #type to autocomplete.
1 call to _yamlform_update_8044()
- yamlform_update_8044 in includes/
yamlform.update.inc - Issue #2783785: Add html editor to UI.
File
- includes/
yamlform.update.inc, line 905 - YAML Form module update hooks.
Code
function _yamlform_update_8044(array &$elements) {
foreach ($elements as $key => &$element) {
if (Element::property($key) || !is_array($element)) {
continue;
}
if (!empty($element['#autocomplete_existing']) || !empty($element['#autocomplete_options'])) {
$element['#type'] = 'autocomplete';
}
_yamlform_update_8044($element);
}
}