function nodereference_token_list in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 modules/nodereference/nodereference.token.inc \nodereference_token_list()
Implementation of hook_token_list().
File
- modules/
nodereference/ nodereference.token.inc, line 11 - Provides tokens for nodereference fields.
Code
function nodereference_token_list($type = 'all') {
if ($type == 'field' || $type == 'all') {
$tokens = array();
$tokens['node reference']['nid'] = t('Referenced node ID');
$tokens['node reference']['title'] = t('Referenced node title');
$tokens['node reference']['title-raw'] = t('Referenced node unfiltered title. WARNING - raw user input.');
$tokens['node reference']['link'] = t("Formatted html link to the referenced node.");
$tokens['node reference']['path'] = t("Relative path alias to the referenced node.");
$tokens['node reference']['url'] = t("Absolute path alias to the referenced node.");
return $tokens;
}
}