You are here

function shorten_token_info in Shorten URLs 8

Same name and namespace in other branches
  1. 8.2 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 480
Shortens URLs via external services.

Code

function shorten_token_info() {
  $info = array();
  $info['tokens']['node']['short-url'] = array(
    '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'] = array(
    'name' => t('Shorten'),
    'description' => t("Shorten URL using the default service."),
  );
  return $info;
}