This feature would detect whether the privatemsg module is enabled or not. If it is, it would add an additional step to the 'add to buddylist' workflow that allows the adding user to send a private message to the person who is being added.

Comments

ajwwong’s picture

I was just looking at http://drupal.org/node/77154 and was wondering if it might be better just to bypass privatemsg?

See, I've taken a look at privatemsg.module's integration possibilities and I actually think jjeff's patch might be a better answer to the same question....

(1) People still get notified by email about being added [or invited :-) as the case may be ... ]...
(2) The buddylist module then has fewer dependencies...
(3) Privatemssge module integration, at least when I looked at how it would break down, might not be that seamless... You'd ideally want to change the name of PrivateMessage's "Write Message" button to something like "Invite as Friend"... but that that would require a change to Privatemsg, rather than buddylist.

Anyhow, I'm gonna check out jjeff's work and get back on this. He always does good stuff! :-)

...we'd just need to possibly add some custom text options so that a personal message can actually be embedded in the email and then it looks possibly good to go.

Thanks for all your hard work with this Robert,

Regards,
Albert
www.ithou.org/For_Natalia

robertDouglass’s picture

Albert,

yes, please do report on your review of that patch. I can obviously use as much help with the buddylist patch queue as I can get at the moment, so it is glad to see people testing, reporting bugs, and evaluating patches.

jaxxed’s picture

Integrating privatemsg into any module is difficult with the current version. The reason for this is that privatemsg has not been written to be used as an API. The method of the module that actualyl sends the private message is integrated into a (arbitrarily) private function of the mdoule that process what is meant to be a form array and then sends the message.
You can simluate the form array and then call the _privatemsg_edit($array) function to send a message but it is IMHO pretty lousy as an API

fago’s picture

I think what's needed is a kind of general communication API.

I would like to see it plugable, so that you call the API and
just say send msg from user A to B and it will do it through the plugged
in module, e.g. private messaging or email sending.
Then it would be nice to be able to plug in multiple modules - where
users can choose how to communicate with other users. However, one (or
more) module has to be the standard one, which will be used for
system/automatic messages.

rkn-dupe’s picture

subscribe