function protected_node_token_info in Protected Node 1.0.x
Same name and namespace in other branches
- 7 protected_node.module \protected_node_token_info()
Implements hook_token_info().
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 1085 - Protected Node module.
Code
function protected_node_token_info() {
$info['tokens']['node'] = array(
'is-protected' => array(
'name' => t('Node protected status'),
'description' => t("Whether the node is protected (yes/no)."),
),
'password' => array(
'name' => t('Node protected password'),
'description' => t("The password in clear (only if available, empty otherwise)."),
),
'protected-title' => array(
'name' => t('Node protected show title'),
'description' => t("Whether the title node of the node is protected (yes/no)."),
),
'password-hint' => array(
'name' => t('Node protected password hint'),
'description' => t("The password hint as entered in this node."),
),
);
return $info;
}