You are here

function shorten_token_info in Shorten URLs 8.2

Same name and namespace in other branches
  1. 8 shorten.module \shorten_token_info()
  2. 7.2 shorten.module \shorten_token_info()
  3. 7 shorten.module \shorten_token_info()

Implements hook_token_info().

File

./shorten.module, line 539

Code

function shorten_token_info() {
  $info = [];
  $info['tokens']['node']['short-url'] = [
    'name' => t('Short Url'),
    'description' => t('The shortened URL for the node. <strong>Deprecated:</strong> use [node:url:shorten] or [node:url:unaliased:shorten] instead.'),
  ];
  $info['tokens']['url']['shorten'] = [
    'name' => t('Shorten'),
    'description' => t("Shorten URL using the default service."),
  ];
  return $info;
}