function node_user in Drupal 4
Same name and namespace in other branches
- 5 modules/node/node.module \node_user()
- 6 modules/node/node.module \node_user()
Implementation of hook_user().
File
- modules/
node.module, line 759 - The core that allows content to be submitted to the site.
Code
function node_user($op, &$edit, &$user) {
if ($op == 'delete') {
db_query('UPDATE {node} SET uid = 0 WHERE uid = %d', $user->uid);
db_query('UPDATE {node_revisions} SET uid = 0 WHERE uid = %d', $user->uid);
}
}