ignored user can't write to me

Babalu - September 10, 2008 - 17:38
Project:Ignore User
Version:6.x-1.1
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

i would like to integrade that ingnored user can't write a privatemsg to me
is that possible ?

Sorry for my english :)

#1

jaydub - September 17, 2008 - 12:35

Ignore user only deals with hiding content created by a user.

Privatemsg already has an option to allow you block another user
from sending you private messages. If the privatemsg module
has an API hook that this module could use to also block a user
from sending private messages then perhaps this could be done.

#2

nbz - November 8, 2008 - 17:29

Just bumping this issue - privatemsg HEAD does allow other modules to block users, which the included pm_block_user leverages.

The two hooks that need to be linked into are:

1. hook_privatemsg_block_message($author, $recipient) - to block, reply with a message giving a reason.
2. hook_privatemsg_pm_controls($pmid) - use this to add per message links to allow/disallow future messages from the author.

further, if needed, the query builder can be hooked into to "hide" messages from specific authors.

#3

Babalu - November 8, 2008 - 18:54

can someone make a patch please ?

#4

jaydub - November 16, 2008 - 14:49

When privatemsg makes an official release with this API function in there then I'll take another look. I don't want to add in features that rely upon something in another module that has yet to make it out of HEAD.

 
 

Drupal is a registered trademark of Dries Buytaert.