You are here

function mmenu_uninstall in Mobile sliding menu 8

Same name and namespace in other branches
  1. 7.3 mmenu.install \mmenu_uninstall()
  2. 7 mmenu.install \mmenu_uninstall()
  3. 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');
}