? 521492-hooks.patch
? 5x-hook.patch
? 625392-p.patch
? 634158-token.patch
? 683594-weight.patch
? 737418-test.patch
Index: menu_node_edit.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/menu_node_edit/menu_node_edit.module,v
retrieving revision 1.14
diff -u -p -r1.14 menu_node_edit.module
--- menu_node_edit.module	31 Dec 2010 21:40:33 -0000	1.14
+++ menu_node_edit.module	31 Dec 2010 21:42:31 -0000
@@ -338,6 +338,7 @@ function menu_node_edit_delete_menu_form
   while ($record = db_fetch_object($result)) {
     db_query("DELETE FROM {menu_node_edit} WHERE mlid = %d", $record->mlid);
     db_query("DELETE FROM {menu_node_edit_user} WHERE mlid = %d", $record->mlid);
+    module_invoke_all('menu_node_edit_delete', $mlid);
   }
   cache_clear_all('menu-access-options', 'cache');
 }
@@ -374,6 +375,7 @@ function menu_node_edit_edit_form_submit
   db_query("DELETE FROM {menu_node_edit} WHERE mlid = %d", $mlid);
   if ($access == 1) {
     db_query("INSERT INTO {menu_node_edit} (mlid) VALUES (%d)", $mlid);
+    module_invoke_all('menu_node_edit_insert', $mlid);
   }
   cache_clear_all('menu-access-options', 'cache');
 }
@@ -386,6 +388,7 @@ function menu_node_edit_delete_form_subm
   $mlid =  $form_state['values']['mlid'];
   db_query("DELETE FROM {menu_node_edit} WHERE mlid = %d", $mlid);
   db_query("DELETE FROM {menu_node_edit_user} WHERE mlid = %d", $mlid);
+  module_invoke_all('menu_node_edit_delete', $mlid);
   cache_clear_all('menu-access-options', 'cache');
 }
 
@@ -440,6 +443,7 @@ function menu_node_edit_overview_form_su
     // Insert the new records.
     foreach ($diff as $mlid) {
       db_query("INSERT INTO {menu_node_edit} (mlid) VALUES (%d)", $mlid);
+      module_invoke_all('menu_node_edit_insert', $mlid);
     }
     drupal_set_message(t('Site sections added.'));
   }
@@ -448,6 +452,7 @@ function menu_node_edit_overview_form_su
     foreach ($remove as $mlid) {
       db_query("DELETE FROM {menu_node_edit} WHERE mlid = %d", $mlid);
       db_query("DELETE FROM {menu_node_edit_user} WHERE mlid = %d", $mlid);
+      module_invoke_all('menu_node_edit_delete', $mlid);
     }
     drupal_set_message(t('Site sections removed.'));
   }
@@ -803,6 +808,7 @@ function menu_node_edit_menu_node_update
 function menu_node_edit_menu_node_delete($item, $node) {
   db_query("DELETE FROM {menu_node_edit} WHERE mlid = %d", $item->mlid);
   db_query("DELETE FROM {menu_node_edit_user} WHERE mlid = %d", $item->mlid);
+  module_invoke_all('menu_node_edit_delete', $item->mlid);
   cache_clear_all('menu-access-options', 'cache');
 }
 
