Retain "Last edited by" info I would like to keep info on the user that last edited a node. From a little search I found that you can easily obtain that info from the node_revisions table. But what if you don't want to enable revisions? Is there any other way to get the uid of the user?

I thought of manually adding a field to my content type that will be set to the current's user username. So every time a user hits save that field will store his info. But then I would have to add field permissions to make sure the users don't see or edit this field.

I was hoping for a more out-of-the-box solution. Probably there isn't any otherwise google would have given me the answer. All ideas appreciated.
Thank you
You can do that by implementing hook_node_presave in your custom module, by something like:

function MODULE_node_presave($node) {
  $recent_copy = array_shift(array_values((node_revision_list($node))));
  drupal_set_message('User id of the user who edited latest is '.var_export($recent_copy-&gt;uid, TRUE));
  drupal_set_message('Username of the user who edited latest is '.var_export($recent_copy-&gt;name, TRUE));
}


You can find a detailed solution see: Get the edited node details without enabling node revision in Drupal.