You are here

function forward_update_8001 in Forward 8.2

Same name and namespace in other branches
  1. 4.x forward.install \forward_update_8001()
  2. 4.0.x forward.install \forward_update_8001()

Sets default value for new variables.

File

./forward.install, line 171
Install, update and uninstall functions for the forward module.

Code

function forward_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config_factory
    ->getEditable('forward.settings')
    ->set('forward_max_recipients', 1)
    ->set('forward_max_recipients_error', "You can't send email to more than @number recipient(s) at a time.")
    ->save();
}