You are here

function link_token_list in Link 7

Same name and namespace in other branches
  1. 6.2 link.module \link_token_list()
  2. 6 link.module \link_token_list()

Implements hook_token_list().

File

./link.module, line 1517
Defines simple link field types.

Code

function link_token_list($type = 'all') {

  // @todo hook_token_list() no longer exists, this should be rewritten as
  // hook_token_info().
  if ($type === 'field' || $type === 'all') {
    $tokens = array();
    $tokens['link']['url'] = t("Link URL");
    $tokens['link']['title'] = t("Link title");
    $tokens['link']['view'] = t("Formatted html link");
    return $tokens;
  }
}