I'm having some problems setting up a tokenized email to use the tokens I've created in my module. I am using this in a tokenized email [example-contact]
. I've implemented the example_token_values()
and example_token_list()
in my module and I've also created a trigger in my module. My module has a form, created with the form API, that gets stored in a custom table. My tokens are listed when I view all available token so I know that example_token_list()
is working but when example_token_values()
is called $type doesn't come up as equal to 'example'.
I need to pull information from the submitted form and display them on the tokenized email that is sent out. Am I missing a function? The Trigger I created is working and fires when the form is submitted and the Action is sending out the email the problem is that the tokens are not being replace with the form's values.
Is there a function that I nee开发者_如何学JAVAd to implement that will call example_token_values("example",$form)
?
An implementation of hook_token_values()
can use any values for $object
; if the module needs to use the value of $form
passed to one of its functions, it can use it.
精彩评论