You are here

function _forward_get_token in Forward 7.3

2 calls to _forward_get_token()
forward_form in ./forward.module
Callback function for the forward form
forward_link_create in ./forward.module
Generate a Forward link for an entity or page

File

./forward.module, line 1565
Allows forwarding of entities by email, and provides a record of how often each has been forwarded.

Code

function _forward_get_token($path = NULL, $entity_wrapper = NULL) {
  if ($entity_wrapper) {
    $token = array(
      'forward' => array(
        'entity' => $entity_wrapper,
      ),
    );
  }
  else {
    $token = array(
      'forward' => array(
        'path' => $path,
      ),
    );
  }
  return $token;
}