Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
For Drupal 6 (might work for D7?)
The Custom Node Access module provides hook_node_access_custom().
Add custom access callbacks to node/[nid]
Example:
function mymodule_node_access_custom($node, $op, $account) {
// Grant random access
return rand(0,1) ? TRUE : FALSE;
}
Credits
This module was sponsored by Berlingske Media A/S
Project information
- Module categories: Access Control
- Created by gielfeldt on , updated