function simplenews_update_8202 in Simplenews 8.2
Same name and namespace in other branches
- 3.x simplenews.install \simplenews_update_8202()
Initialise newsletter allowed handlers field.
File
- ./
simplenews.install, line 150 - Install, update and uninstall functions for the simplenews module.
Code
function simplenews_update_8202() {
foreach (Newsletter::loadMultiple() as $newsletter) {
if (!isset($newsletter->allowed_handlers)) {
$newsletter->allowed_handlers = [];
$newsletter
->save();
}
}
}