Trivial patch, hence marked as RTBC.

Comments

Zen’s picture

Status: Reviewed & tested by the community » Needs work

I don't really see anything wrong with using "author". Even if such a modification is to be made, it should probably use theme_username.

Please don't set issues to RTBC directly regardless of their triviality.

My inclination is to "by design" this.
-K

wim leers’s picture

Assigned: wim leers » Unassigned

My apologies for marking it as RTBC. I'm not sure why I did that.

"author" is a word that's uncommon lingo in certain use cases, such as forums. "user" would be more common there. As a way in-between, I opted for "Write to John Doe".

In hindsight, this should have been made configurable through the admin settings. I.e. allow the administrator to use a fixed piece of text (allowing for "author", "user", whatever), or the recipient's name.

jaydub’s picture

Status: Needs work » Needs review
StatusFileSize
new1.48 KB

My take on this in patch form...

includes administrative option to use the default or the username.

wim leers’s picture

Status: Needs review » Needs work

Thanks.

This line definitely needs work:
'title' => variable_get('privatemsg_write_to_default', 'default') == 'username' ? $link_text = t('Write to @name', array('@name' => $author->name)) : $link_text = t('Write to author'),

At least remove the $link_text = pieces, since they're useless.

jaydub’s picture

oops that was left over from a previous pass! Aside from that what else
needs work?

wim leers’s picture

The rest seems ok to me :)

jaydub’s picture

Status: Needs work » Needs review
StatusFileSize
new1.45 KB

re-roll of patch

wallbay1’s picture

very nice patch but how do I paste it on the site
which folder etc..

wim leers’s picture

Status: Needs review » Closed (won't fix)

The Drupal 5 version of this module is no longer maintained.