You are here

function forward_update_8201 in Forward 4.0.x

Same name and namespace in other branches
  1. 8.3 forward.install \forward_update_8201()
  2. 8.2 forward.install \forward_update_8201()
  3. 4.x forward.install \forward_update_8201()

Split 'forward_filter_format' setting into HTML vs. plain text filters.

File

./forward.install, line 202
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);
}