You are here

function _webform_protected_downloads_token_replace in Webform Protected Downloads 7

Same name and namespace in other branches
  1. 6 webform_protected_downloads.module \_webform_protected_downloads_token_replace()

Helper function for token replacement

Parameters

string $string:

object $node:

string $hash:

Return value

string

2 calls to _webform_protected_downloads_token_replace()
webform_protected_downloads_download_page in ./webform_protected_downloads.page.inc
Displays the download page
webform_protected_downloads_send_mail in ./webform_protected_downloads.module
Send mail to the user with a valid hash so that he can access the download page

File

./webform_protected_downloads.module, line 934
This file contains hook declarations and functions for the Webform Protected Downloads module.

Code

function _webform_protected_downloads_token_replace($string, $node, $hash) {
  return token_replace($string, array(
    'node' => $node,
    'hash' => $hash,
  ));
}