Closed (fixed)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2009 at 10:30 UTC
Updated:
3 Mar 2009 at 23:20 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| user_relationships_api.patch | 2.17 KB | finfin82 |
Comments
Comment #1
litwol commentedInteresting 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)
Comment #2
berdirFeel 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.
Comment #3
berdirFeel 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.