function protected_node_token_list in Protected Node 6
Implementation of hook_token_list().
This function defines some extras for the protected node (i.e. whether a node is protected, title flag, last time the password was changed, etc.)
File
- ./
protected_node.module, line 732
Code
function protected_node_token_list($type = 'all') {
if ($type == 'node' || $type == 'all') {
$tokens['node']['node-is-protected'] = t('Whether the node is protected (yes/no).');
$tokens['node']['node-password'] = t('The password in clear (only if available, empty otherwise).');
$tokens['node']['node-protected-title'] = t('Whether the title node of the node is protected (yes/no).');
$tokens['node']['node-password-hint'] = t('The password hint as entered in this node.');
return $tokens;
}
}