You are here

function page_title_token_list in Page Title 5.2

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

Implementation of hook_token_list().

Parameters

string Which type of token list are we generating?:

Return value

array Nested array of Token ID and Token Name pairs.

File

./page_title.module, line 527
Enhanced control over the page title (in the head tag).

Code

function page_title_token_list($type = 'all') {
  $tokens = array();
  if ($type == 'global' || $type == 'all') {
    $tokens['global']['page-title'] = t("The page title.");
  }
  return $tokens;
}