Moved menu_rebuild() call to the end of panels_page_delete()
authorSam Boyer
Tue, 2 Sep 2008 21:19:00 +0000 (21:19 +0000)
committerSam Boyer
Tue, 2 Sep 2008 21:19:00 +0000 (21:19 +0000)
panels_page/panels_page.write.inc

index 51a093a..5916214 100644 (file)
@@ -146,7 +146,6 @@ function _panels_page_save_value($info, $value) {
 function panels_page_delete($panel_page) {
   // Delete the panel page.
   db_query("DELETE FROM {panels_page} WHERE pid = %d", $panel_page->pid);
-  menu_rebuild();
 
   // Delete the primary display.
   panels_delete_display($panel_page->did);
@@ -159,6 +158,7 @@ function panels_page_delete($panel_page) {
       }
     }
   }
+  menu_rebuild();
 }
 
 /**