function protected_node_enterpassword_submit in Protected Node 6
Same name and namespace in other branches
- 5 protected_node.module \protected_node_enterpassword_submit()
- 7 protected_node.redirect.inc \protected_node_enterpassword_submit()
- 1.0.x protected_node.redirect.inc \protected_node_enterpassword_submit()
Allow the user to see this node.
File
- ./
protected_node.redirect.inc, line 196 - Redirected page callback file for the protected_node module.
Code
function protected_node_enterpassword_submit($form, &$form_state) {
// TODO: the protected_node_nid parameter should be extracted from the destination URI
$_SESSION['_protected_node']['passwords'][$form_state['values']['protected_node_nid']] = time();
}