You are here

function campaignmonitor_update_8001 in Campaign Monitor 8.2

Same name and namespace in other branches
  1. 8 campaignmonitor.install \campaignmonitor_update_8001()

Remove the library_path config.

File

./campaignmonitor.install, line 11
Update hooks for campaignmonitor.

Code

function campaignmonitor_update_8001() {
  $config = \Drupal::configFactory()
    ->getEditable('campaignmonitor.settings');
  $data = $config
    ->getRawData();
  unset($data['library_path']);
  $config
    ->setData($data)
    ->save();
}