You are here

function mailchimp_update_8002 in Mailchimp 8

Same name and namespace in other branches
  1. 2.x mailchimp.install \mailchimp_update_8002()

Update to add a configurable timeout period for the API.

File

./mailchimp.install, line 57
Install, update and uninstall functions for the Mailchimp Module.

Code

function mailchimp_update_8002(&$sandbox) {
  $config = \Drupal::configFactory()
    ->getEditable('mailchimp.settings');
  $config
    ->set('api_timeout', 10);
  $config
    ->save();
}