function webform_update_8064 in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.install.update.inc \webform_update_8064()
Issue #2878193: Allow actions (aka submit buttons) to be placed anywhere on a webform.
File
- includes/
webform.install.update.inc, line 1308 - Archived Webform update hooks.
Code
function webform_update_8064() {
// Move disabled HTML editor from ui to element.html_editor.
$config = \Drupal::configFactory()
->getEditable('webform.settings');
$data = $config
->getRawData();
if (isset($data['ui']['html_editor_disabled'])) {
$data['html_editor']['disabled'] = $data['ui']['html_editor_disabled'];
}
$config
->setData($data);
$config
->save();
_webform_update_admin_settings();
}