function uuid_token_list in Universally Unique IDentifier 6
Implementation of hook_token_list().
File
- ./
uuid.module, line 433 - Main module functions for the uuid module.
Code
function uuid_token_list($type = 'all') {
$tokens = array();
if ($type == 'global' || $type == 'all') {
$tokens['global']['uuid'] = t("An arbitrary UUID value");
}
if ($type == 'node' || $type == 'all') {
$tokens['node']['uuid'] = t("The node UUID value");
$tokens['node']['revision_uuid'] = t("The node revision UUID value");
$tokens['node']['author-uuid'] = t("The node author UUID value");
}
if ($type == 'user' || $type == 'all') {
$tokens['user']['uuid'] = t("The user UUID value");
}
return $tokens;
}