function simplenews_update_8202 in Simplenews 3.x
Same name and namespace in other branches
- 8.2 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();
}
}
}