function webform_update_8003 in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.install.update.inc \webform_update_8003()
Issue #2834654: Add close button to messages.
File
- includes/
webform.install.update.inc, line 94 - Archived Webform update hooks.
Code
function webform_update_8003() {
// Change webform.* to webform.* state.
$webforms = Webform::loadMultiple();
foreach ($webforms as $webform) {
$state = \Drupal::state()
->get('webform.' . $webform
->id(), NULL);
if ($state !== NULL) {
\Drupal::state()
->set('webform.webform.' . $webform
->id(), $state);
\Drupal::state()
->delete('webform.' . $webform
->id());
}
}
}