function readonlymode_update_8001 in Read only mode 8
Move the Read Only Mode settings from variable to config.
File
- ./
readonlymode.install, line 21 - Install and update hooks for the Read Only Mode module.
Code
function readonlymode_update_8001() {
update_variables_to_config('readonlymode.settings', [
'site_readonly' => 'enabled',
'site_readonly_url' => 'url',
'site_readonly_message' => 'messages.default',
'site_readonly_forms_allowed' => 'forms.additional.edit',
'site_readonly_forms_viewonly' => 'forms.additional.view',
]);
}