You are here

function nodewords_token_values in Nodewords: D6 Meta Tags 5

Implementation of hook_token_values().

File

./nodewords.module, line 68
Assign META tags to nodes, vocabularies, terms and pages.

Code

function nodewords_token_values($type, $object = NULL, $options = array()) {
  $tokens = array();
  if ($type = 'node') {
    $tokens['meta-keywords'] = $object->nodewords['keywords'];
    $tokens['meta-description'] = $object->nodewords['description'];
  }
  return $tokens;
}