function webform_update_8020 in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.install.update.inc \webform_update_8020()
Issue #2845724: Add webform opening and closing date/time.
File
- includes/
webform.install.update.inc, line 396 - Archived Webform update hooks.
Code
function webform_update_8020() {
// Resave all webforms to convert status boolean to string.
$webforms = Webform::loadMultiple();
foreach ($webforms as $webform) {
$webform
->setStatus($webform
->get('status'))
->save();
}
_webform_update_webform_settings();
}