diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-30 03:47:36 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-30 03:47:36 +0000 |
commit | 9d638eb177e41410a411b6143ffdda7e181753f1 (patch) | |
tree | ce9d78b7a699b15461f97d862837a333d531ad97 /modules | |
parent | cb5e5a137c1ffa7a4136814bede8d55859647bae (diff) | |
download | brdo-9d638eb177e41410a411b6143ffdda7e181753f1.tar.gz brdo-9d638eb177e41410a411b6143ffdda7e181753f1.tar.bz2 |
#1003958 by mlncn: Correct _node_save_revision documentation
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 4a0ab7b45..b238c9e85 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1159,8 +1159,7 @@ function node_save($node) { /** * Helper function to save a revision with the uid of the current user. * - * Node is taken by reference, because drupal_write_record() updates the - * $node with the revision id, and we need to pass that back to the caller. + * The resulting revision ID is available afterward in $node->vid. */ function _node_save_revision($node, $uid, $update = NULL) { $temp_uid = $node->uid; @@ -1171,6 +1170,7 @@ function _node_save_revision($node, $uid, $update = NULL) { else { drupal_write_record('node_revision', $node); } + // Have node object still show node owner's uid, not revision author's. $node->uid = $temp_uid; } |