This is best illustrated with an example. Take the following user, with username=foo, and their real name (eg, profile node title) = bar. When searching for, and selecting from the autocomplete, bar, the author field is populated with 'foo'. This was confusing to many end users. The attached patch does the following:

1) Populates the author field with USERNAME: REAL NAME
2) Adds a validation function that runs before node_validate to replace the above pattern with USERNAME so that the proper author is found

Thanks,

Jonathan

CommentFileSizeAuthor
author_smart_name.patch2.77 KBjhedstrom

Comments

jenlampton’s picture

Status: Needs review » Fixed

Thanks, this is a great addition! I've committed your patch. Please let me know if you are interested in taking over this module, or being a co-maintainer.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jhedstrom’s picture

Sorry I never saw your response, due to some broken email settings. I don't really have time to take on another module to co-maintain, but at some point may be interested anyway, just not now :)