function shortcut_uninstall

Same name and namespace in other branches
  1. 11.x core/modules/shortcut/shortcut.install \shortcut_uninstall()
  2. 10 core/modules/shortcut/shortcut.install \shortcut_uninstall()
  3. 9 core/modules/shortcut/shortcut.install \shortcut_uninstall()
  4. 8.9.x core/modules/shortcut/shortcut.install \shortcut_uninstall()
  5. main core/modules/shortcut/shortcut.install \shortcut_uninstall()

Implements hook_uninstall().

File

modules/shortcut/shortcut.install, line 41

Code

function shortcut_uninstall() {
  drupal_load('module', 'shortcut');
  // Delete the menu links associated with each shortcut set.
  foreach (shortcut_sets() as $shortcut_set) {
    menu_delete_links($shortcut_set->set_name);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.