Commit 41150e5f authored by profix898's avatar profix898

- bugfix: link items not removed on uninstall

parent a73cb3fb
......@@ -29,5 +29,11 @@ function gallery_menu_update_6000() {
* Implementation of hook_uninstall().
function gallery_menu_uninstall() {
// Remove all link items
$result = db_query("SELECT link_path FROM {menu_links} WHERE module = '%s' AND link_path LIKE '%s'", 'gallery_menu', variable_get('gallery_base', 'gallery') .'/%');
while ($item = db_fetch_object($result)) {
menu_link_delete(NULL, $item->link_path);
db_query("DELETE FROM {variable} WHERE name LIKE '%s'", 'gallery_menu_%');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment