You are here

function nagios_post_update_rename_config_key____ in Nagios Monitoring 8

Implements hook_post_update_NAME().

File

./nagios.module, line 894
Main file for Nagios service monitoring.

Code

function nagios_post_update_rename_config_key____() {
  $config = Drupal::configFactory()
    ->getEditable('nagios.settings');
  $new = 'nagios.limit_watchdog.channel_filter';
  $old = 'nagios.limit_watchdog.channel_blacklist';
  $config
    ->set($new, $config
    ->get($old));
  $config
    ->clear($old);
  $config
    ->save();
}