You are here

function views_ef_fieldset_uninstall in Views Exposed Form Fieldset 8

Implements hook_uninstall().

File

./views_ef_fieldset.install, line 20

Code

function views_ef_fieldset_uninstall() {
  $config = \Drupal::config('views.settings')
    ->get('display_extenders');
  if (($key = array_search('views_ef_fieldset', $config, TRUE)) !== FALSE) {
    unset($config[$key]);
  }
  \Drupal::configFactory()
    ->getEditable('views.settings')
    ->set('display_extenders', $config)
    ->save();
}