You are here

function _nodewords_taxonomy_load in Nodewords: D6 Meta Tags 6.3

1 call to _nodewords_taxonomy_load()
nodewords_replace_tokens in ./nodewords.module
Create the content of a meta tag from a node teaser.

File

./nodewords.module, line 1148
Implement an version that other modules can use to add meta tags.

Code

function _nodewords_taxonomy_load(array $options) {
  $value = NULL;
  if ($options['type'] == NODEWORDS_TYPE_TERM) {
    $value = taxonomy_get_term($options['id']);
  }
  elseif ($options['type'] == NODEWORDS_TYPE_TERM) {
    $value = taxonomy_vocabulary_load($options['id']);
  }
  return $value;
}