By mhuk on
Any pointers or tips on this would be great:
I have a triggered rule that is fired when a user answers a series of questions (which are created in a view).
I then need to create a pdf, based on their answers.
If they answer 1, 3 and 5, I need to concatenate 1.pdf, 3.pdf and 5.pdf
I've looked at tcpdf and the code here:http://neo22s.com/concatenate-pdf-in-php/
In a test module (with no user id) I got an error in their code but my main worry is how to pass the user ID into the module if I create one.
Is there a better way to do this (assuming I can get the create a pdf code to work)?
Apologies for the slightly vague description.
Comments
user_load(user_ID)
Hi
try use user_load(uid) function
Thanks for your reply. Would
Thanks for your reply.
Would I use that in the triggered rule?
And can I run module code using a triggered rule?
of course
you can create a special content type "user_answer" for example then use the triggered
We have a custom Content Type
We have a custom Content Type with a trigger on it.
It's the step of running the pdf code using the user id that is the bit that I'm not sure on. Do I need to create create a custom action that runs the module code and add some kind of hook to the module to allow it to be run as an action?
thanks.