by using the theming call, you allow modules like realname to replace the name value.

Comments

berdir’s picture

Version: 6.x-1.0-rc2 » 6.x-1.x-dev
Status: Needs review » Needs work

- Please provide patches against -dev
- Please post unified patches by using the options "-up"
- Note that theme('username') can't be used always, because that results in a HTML link.. and that doesn't work for textfields, for example.

harry slaughter’s picture

Version: 6.x-1.x-dev » 6.x-1.0-rc2
Status: Needs work » Needs review
StatusFileSize
new469 bytes

please use this patch instead

harry slaughter’s picture

StatusFileSize
new1.55 KB

this patch preserves the 'to' values but changes the names as they appear in the form markup to be themed usernames

harry slaughter’s picture

StatusFileSize
new2.51 KB

this patch fixes the display of the drupal_message() generated after a message is sent.

harry slaughter’s picture

berdir’s picture

Status: Needs review » Needs work

privatemsg_form_alter went away, this needs to be re-rolled.

berdir’s picture

Status: Needs work » Closed (duplicate)
rickydrupal’s picture

Category: bug » support
Status: Closed (duplicate) » Active

how can i apply the patch into d6 ?
I tried UnxUtils & TortoiseSVN but failed

#########################################################
D:\xampp\htdocs\drupal\sites\all\modules\privatemsg>patch -p0 < username_4.patch

patching file `privatemsg.module'
Assertion failed: hunk, file patch.c, line 321

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

D:\xampp\htdocs\drupal\sites\all\modules\privatemsg>
#########################################################

berdir’s picture

Status: Active » Closed (duplicate)

Why would you want to add that patch? As written above, this is already been added.

rickydrupal’s picture

Status: Closed (duplicate) » Active

Hi,

Because I would like to change the title "send message to user1" to "send message to %realname" in messages/new

I am using Privatemsg 6.x-1.1 + drupal 6.14. Don;t know how to do it.

Thanks

berdir’s picture

Status: Active » Closed (duplicate)

That's not what the issue was about. Create a new one, please.