function views_send_tokens in Views Send 7
Implementation hook_tokens().
These token replacements are used by Rules and not in the Views form.
1 string reference to 'views_send_tokens'
- views_send_update_6001 in ./
views_send.install - Remove unused variables.
File
- ./
views_send.tokens.inc, line 37 - Token integration for the Views Send module.
Code
function views_send_tokens($type, $tokens, array $data = array(), array $options = array()) {
$replacements = array();
if ($type == 'views_send_email_message' && !empty($data['views_send_email_message'])) {
foreach ($tokens as $name => $original) {
$replacements[$original] = $data['views_send_email_message']->{$name};
}
}
return $replacements;
}