function node_user in Drupal 6
Same name and namespace in other branches
- 4 modules/node.module \node_user()
- 5 modules/node/node.module \node_user()
Implementation of hook_user().
File
- modules/
node/ node.module, line 1332 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
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);
}
}