You are here

function domain_source_token_info in Domain Access 7.3

Same name and namespace in other branches
  1. 8 domain_source/domain_source.module \domain_source_token_info()

Implements hook_token_info(). Provide information about our source domain token.

Return value

array An associative array of available tokens and token types.

See also

http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...

File

domain_source/domain_source.tokens.inc, line 16
Token callbacks for the domain_source module.

Code

function domain_source_token_info() {

  // Node tokens.
  $info['tokens']['node']['source-domain-node-url'] = array(
    'name' => t('Node URL with base source domain url.'),
    'description' => t("Node URL with base source domain url. Useful for canonical link."),
  );
  return $info;
}