Closed (fixed)
Project:
Privatemsg
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2011 at 18:07 UTC
Updated:
6 Dec 2011 at 16:28 UTC
How can I display the private message form in a block on a content type, prepopulate and hide the To field with the node author?
Comments
Comment #1
berdirYou should be able to find everything Privatemsg specific you need on http://drupal.org/node/624528. Note that the documentation is for 6.x and might need some slight adjustments for 7.x.
Comment #2
kevinquillen commentedThank you. I didn't see that page. I will take a look.
Comment #3
kevinquillen commentedHere's what I have:
I can dump $contact and see a form array, but I cannot get anything to show up on the page. I tried using render(item) and drupal_render() but nothing happened. What do I need to call to display the renderable array as a themed form?
Comment #4
kevinquillen commentedGot it, forgot to use $vars['contact'].
Comment #6
lameei commentedHi Kevin
I'm trying to do the same on V6. would you please help me?
Comment #7
lameei commentedJust opening the issue...
Comment #8
berdirCreate a new issue, don't re-open long closed ones.
You can also try to ask on Drupal Answers.
Comment #9
lameei commentedok,sorry. I didn't want to make a new issue for the same thing. anyway here is the issue i opened http://drupal.org/node/1360752.
Comment #10
kevinquillen commentedCouldn't tell you. I didn't use D6. I would assume its not too far different than what I did in #3.
Comment #11
lameei commentedAnd what did you mean with:
Would you please write me the correct code here?
Comment #12
kevinquillen commentedThat's what I used in a preprocess function to populate a template variable with the private message form. You can name it anything.