? 699858_modules_index.patch
? 706842-taxonomy-update-broken_0.patch
? 864464_old_d6_upgrade_boom_frown.patch
? 864464_old_d6_upgrade_boom_sad_panda.patch
? 864464_old_d6_upgrade_boom_sad_panda_0.patch
? 864464_old_d6_upgrade_please_commit_me_webchick_pleeeeeeeeease.patch
? 882814.patch
? 929208.patch
? head.tgz
? modules-index_2.patch
? temp.php
? sites/all/modules/user_warn
? sites/default/files
? sites/default/settings.php
Index: modules/path/path.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/path/path.api.php,v
retrieving revision 1.1
diff -u -p -r1.1 path.api.php
--- modules/path/path.api.php	17 Oct 2009 00:52:36 -0000	1.1
+++ modules/path/path.api.php	3 Oct 2010 05:57:21 -0000
@@ -13,30 +13,49 @@
 
 
 /**
- * The path has been inserted.
+ * Allow modules to respond to a path being inserted.
  *
  * @param $path
- *   The path array.
+ *   The path that has been inserted.
+ *
+ * @see path_save()
  */
 function hook_path_insert($path) {
+  $query = db_insert('mytable')
+    ->fields(array(
+      'foo' => 'bar',
+      'pid' => $path['pid'],
+    ))
+    ->execute();
 }
 
 /**
- * The path has been updated.
+ * Allow modules to respond to a path being updated.
  *
  * @param $path
- *   The path array.
+ *   The path thaat has been updated.
+ *
+ * @see path_save()
  */
 function hook_path_update($path) {
+  db_update('mytable')
+    ->fields(array('foo' => 'baz'))
+    ->condition('pid', $path['pid'])
+    ->execute();
 }
 
 /**
- * The path has been deleted.
+ * Allow modules to respond to a path being deleted.
  *
  * @param $path
- *   The path array.
+ *   The path that has been deleted.
+ *
+ * @see path_delete()
  */
 function hook_path_delete($path) {
+  db_delete('mytable')
+    ->condition('pid', $path['pid'])
+    ->execute();
 }
 
 /**
