I think it would be cool to take advantage of user_relationships_api in the autocomplete field.
So to just show friends in the autocomplete field if the user_relationships_api is installed.

attached is a patch

CommentFileSizeAuthor
user_relationships_api.patch2.17 KBfinfin82

Comments

litwol’s picture

Version: 6.x-1.0-rc2 » 6.x-1.x-dev

Interesting idea indeed!

unfortunately the autocomplete function is one of the first ones i've written for privatemsg and therefore it does not follow any new standards (which is to use query builder).

I think it is a good idea to rewrite autosuggest function to use query builder so then we can easily create an integration module between privatemsg and user_relations :)

just to note few benefits :
1) avoid suggesting names that are blocked by the user or the user is blocked by (pm_block_user integration)
2) limit suggestion list only to that user's "friends" (user_relationship integration)

berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Feel free to use http://drupal.org/node/373044 as a start for integrating your module with Privatemsg. If there are any question, just ask and I'll try to improve the example.

berdir’s picture

Status: Postponed (maintainer needs more info) » Fixed

Feel free to reopen this issue or ping me in icq if there are more questions about this. I'll close this issue as further steps need to be done in other modules.

Status: Fixed » Closed (fixed)

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