function og_token_list in Organic groups 6
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.2 og.module \og_token_list()
Implementation of hook_token_list() for og specific tokens /*
File
- ./
og.module, line 2650
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');
return $tokens;
}
}