Yes...but private module (or any other module) would need to send a drupal_set_message().
My module just converts drupal messages to jQuery Msg Alerts. It isn't able to send messages, so this behavior needs to be added at the other module.
If private message module doesn't do this, you'll need to develop by yourself. You can try to find a hook in private module, after the message is sent to the user or hack the code to add a code that will print a code like this:
//code to send message to user
[...]
drupal_set_message('You received a message');
If you need this by ajax, you'll need to add the message html and call again jquery msg alert by your custom javascript code, as this: $('.alert-content').MsgAlert({closeTime: 6000});
Sounds complicated, but it's possible. Anyway, it's a thing you need to develop by your own.
bye
Carlos
PS: I'm closing this issue because this functionality isn't something i can change, needs to be done at private message module.
as far as I know, private message module already supports drupal_set_message? Or maybe, if I remember correctly, there is a jgrowl submodule corresponding to this for pm module, gkazhus.
Comments
Comment #1
carvalhar commentedYes...but private module (or any other module) would need to send a drupal_set_message().
My module just converts drupal messages to jQuery Msg Alerts. It isn't able to send messages, so this behavior needs to be added at the other module.
If private message module doesn't do this, you'll need to develop by yourself. You can try to find a hook in private module, after the message is sent to the user or hack the code to add a code that will print a code like this:
If you need this by ajax, you'll need to add the message html and call again jquery msg alert by your custom javascript code, as this:
$('.alert-content').MsgAlert({closeTime: 6000});Sounds complicated, but it's possible. Anyway, it's a thing you need to develop by your own.
bye
Carlos
PS: I'm closing this issue because this functionality isn't something i can change, needs to be done at private message module.
Comment #2
dqdas far as I know, private message module already supports drupal_set_message? Or maybe, if I remember correctly, there is a jgrowl submodule corresponding to this for pm module, gkazhus.
But btw, I would like to point all message module maintainers to this initiative for Drupal message modules: http://digidog.de/notes/drupal-message-popup-modules-initiative