function mmenu_uninstall in Mobile sliding menu 8
Same name and namespace in other branches
- 7.3 mmenu.install \mmenu_uninstall()
- 7 mmenu.install \mmenu_uninstall()
- 7.2 mmenu.install \mmenu_uninstall()
Implements hook_uninstall().
Removes variables on uninstall.
File
- ./
mmenu.install, line 20 - Install and uninstall functions for the mobile sliding menu module.
Code
function mmenu_uninstall() {
// Deletes mmenu.settings.
\Drupal::configFactory()
->getEditable('mmenu.settings')
->delete();
// Clears mmenus cache.
\Drupal::cache()
->delete('mmenus:cache');
}