--- /cvs/drupal-4-5/modules/node.module 2005-02-18 03:17:22.000000000 +0200 +++ modules/node.module 2005-03-17 16:05:33.333277464 +0200 @@ -1554,6 +1554,15 @@ } /** + * Implementation of hook_user(). + */ +function node_user($type, $edit, &$user, $category = NULL) { + if ($type == 'delete') { + db_query('UPDATE {node} SET uid = 0 WHERE uid = %d', $user->uid); + } +} + +/** * @defgroup node_access Node access rights * @{ * The node access system determines who can do what to which nodes.