function shurly_uninstall in ShURLy 8
Same name and namespace in other branches
- 6 shurly.install \shurly_uninstall()
- 7 shurly.install \shurly_uninstall()
Implement hook_uninstall().
File
- ./
shurly.install, line 182 - Shurly install file.
Code
function shurly_uninstall() {
// Remove variables.
\Drupal::configFactory()
->getEditable('shurly.settings')
->clear('shurly_throttle')
->save();
\Drupal::configFactory()
->getEditable('shurly.settings')
->clear('shurly_length')
->save();
\Drupal::configFactory()
->getEditable('shurly.settings')
->clear('shurly_counter')
->save();
\Drupal::configFactory()
->getEditable('shurly.settings')
->clear('shurly_index')
->save();
\Drupal::configFactory()
->getEditable('shurly.settings')
->clear('shurly_base')
->save();
\Drupal::state()
->delete('shurly.settings.shurly_counter');
}