Prepopulating Private Message fields

Last modified: June 5, 2009 - 01:43

If you are trying to pre-populate the private message fields this how to do it. Like the drupal body field there is an array called privatemsg which needs to go first.

e.g.

http://yoursite.com/messages/new?edit[privatemsg][recipient]=name&edit[privatemsg][subject]=subject line

To get the just the text name in the recipient I put this as recipient

<?php
print strip_tags($name);
?>

 
 

Drupal is a registered trademark of Dries Buytaert.