function shorten_token_info in Shorten URLs 7
Same name and namespace in other branches
- 8.2 shorten.module \shorten_token_info()
- 8 shorten.module \shorten_token_info()
- 7.2 shorten.module \shorten_token_info()
Implements hook_token_info().
File
- ./
shorten.module, line 681 - 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;
}