You are here

function og_vocab_token_list in OG Vocabulary 6

Implementation of hook_token_list().

File

./og_vocab.token.inc, line 26
Integration of token module with og_vocab module.

Code

function og_vocab_token_list($type = 'all') {
  if ($type == 'taxonomy' || $type == 'all') {
    $tokens['taxonomy'] = array(
      'ogname' => t('The title of the organic group the category belongs to.'),
      'ogname-raw' => t('The unfiltered title of the organic group the category belongs to. WARNING - raw user input.'),
      'og-id' => t('ID of the organic group the category belongs to.'),
    );
    return $tokens;
  }
}