You are here

function page_title_token_values in Page Title 5.2

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

Implementation of hook_token_values().

Parameters

string The type of token being generated:

Return value

array An array of Token ID and Token Value pairs

File

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

Code

function page_title_token_values($type) {
  $values = array();
  if ($type == 'global') {
    $values['page-title'] = page_title_get_title();
  }
  return $values;
}