function add_to_head_uninstall in Add To Head 8
Same name and namespace in other branches
- 6 add_to_head.install \add_to_head_uninstall()
- 7 add_to_head.install \add_to_head_uninstall()
Implements hook_uninstall().
File
- ./
add_to_head.install, line 13 - This file just contains an implementaion of hook_uninstall to clean up after ourselves.
Code
function add_to_head_uninstall() {
\Drupal::configFactory()
->getEditable('add_to_head.settings')
->clear('add_to_head_profiles')
->save();
}