The realname feature is useful, however it would be even better if it supported having the name field on a profile2 bundle.

CommentFileSizeAuthor
#1 name-profile2_realname-2087263-1.patch8.94 KBrooby

Comments

rooby’s picture

Status: Active » Needs review
StatusFileSize
new8.94 KB

How about this for a solution?

A couple of things to note:
* In the current code there are some places where it tries to use $acccount instead of $account, so presumably the currently realname functionality doesn't work properly at the moment.
* The call to name_format() was previously passing in the user object and entity type as $settings, however name_format() and its children don't seem to ever use those so I removed them.

rooby’s picture

Also, in the spirit of full disclosure, I have not tested the webform integration as yet.

alan d.’s picture

Nice ;)

A super quick 1 min review looks good, not sure when I'll get the time for a complete review though.

alan d.’s picture

Issue summary: View changes
Status: Needs review » Closed (works as designed)

Thinking this is custom module territory, too many third party modules potentially needing the same thing directly or indirectly, P, FC, Profile2, ER, ...