Hi
Now i am using private message module to send/receive messages from/to only the registered user in my site. I want to send the message by their roles as well as by entering the email addresses as it is in facebook new message field. Is any patch file available to modify the private message module for sending message by entering the email address? Is any hook file to modify the private message module?

Comments

berdir’s picture

Status: Active » Fixed

Yes, you can implement this hook: http://blog.worldempire.ch/de/api/function/hook_privatemsg_name_lookup/6-2

Just return an user object (actually, recipient object) and it should work.

Note that for autocomplete integration, you could also implement the following hook: http://blog.worldempire.ch/de/api/function/hook_privatemsg_sql_autocompl... (See http://blog.worldempire.ch/de/api/function/privatemsg_sql_autocomplete/6-2 for the original query)

Status: Fixed » Closed (fixed)

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