function forward_update_8201 in Forward 4.x
Same name and namespace in other branches
- 8.3 forward.install \forward_update_8201()
- 8.2 forward.install \forward_update_8201()
- 4.0.x forward.install \forward_update_8201()
Split 'forward_filter_format' setting into HTML vs. plain text filters.
File
- ./
forward.install, line 203 - Install, update and uninstall functions for the forward module.
Code
function forward_update_8201() {
$forward_settings = \Drupal::configFactory()
->getEditable('forward.settings');
$format = $forward_settings
->get('forward_filter_format');
$forward_settings
->set('forward_filter_format_html', $format);
$forward_settings
->set('forward_filter_format_plain_text', '');
$forward_settings
->save(TRUE);
}