Hi all,

I am wondering if anyone knows what the specific variable name is that specific user/node information can be accessed using inside the message body (without using tokens). I have tried various incantations of $context['row'] and $row. I know that $row[index] will return the data from its corresponding line in the user selection list. The problem with that approach is that there is no awareness of which users are actually selected for sending the message to (i.e. if I use $row[0] in the message and select the second and third users in the selection list, those two people get messages with data from first user in the selection list, though the first user was not chosen to actually send the message to). The reason I need to access these variables directly is multipurposed: (1) to create some additional message content on the fly using the one time login module (i.e. providing a one-time login url to the user) and (2) even though from looking at the code it appears that token replacements are made before the message body is drupal_eval'd for PHP content, using tokens as arguments in PHP segments of the message fails (whereas hard-coding the value in seems to work), and (3) using values from a content taxonomy field in the view only gives you current vid of that attached node when using the token -- I know how to process that value to get my taxonomy terms, but since the variable isn't exposed to allow me to wrap that functionality around, I'm stuck sending out the vid of the node with the appropriate content taxonomy term IDs in it to the user, which doesn't really mean much to them!

This is a wonderful module, and I think knowing exactly what to do to access some of this data directly and manipulate it opens up a much larger window of opportunity to make use of its powerful feature set.

Thanks,
Brad

Comments

geekmuse’s picture

Will this not be addressed? It has been over two months since the initial request was made...

hansfn’s picture

As you probably know, the maintainer has been unavailable for some time. I have stepped up to main the D7 branch. I also try to handle major D6 stuff.

Anyway, I don't see the problem - isn't it just to look at the code that fetches the values used in the token replacement? (That will also give you the user the message is sent to and so on.) Look at the function views_send_mail_action in the file views_send.module.

PS! Regarding 3 - the taxonomy term vid. Can't you use a relationship in Views to get what you want? That isn't a Views Send issue.

hansfn’s picture

Status: Active » Closed (outdated)

No more development on the D6 version.