function og_token_list in Organic groups 6.2
Same name and namespace in other branches
- 5.8 og.module \og_token_list()
- 5 og.module \og_token_list()
- 5.3 og.module \og_token_list()
- 5.7 og.module \og_token_list()
- 6 og.module \og_token_list()
Implementation of hook_token_list() for OG-specific tokens.
File
- ./
og.module, line 2852 - Code for the Organic Groups module.
Code
function og_token_list($type = 'all') {
if ($type == 'node' || $type == 'all') {
$tokens['node']['ogname'] = t('Title of top group');
$tokens['node']['ogname-raw'] = t('Unfiltered title of top group. WARNING - raw user input.');
$tokens['node']['og-id'] = t('ID of top group');
$tokens['node']['og-type'] = t("Type of top group");
$tokens['node']['ogalias'] = t("URL alias for the top group.");
return $tokens;
}
}