function access_unpublished_perm in Access unpublished 6
Implements hook_perm().
File
- ./
access_unpublished.module, line 61 - This module is used to allow access to unpublished nodes
Code
function access_unpublished_perm() {
foreach (node_get_types() as $type => $name) {
$perms[] = 'Generate hashed URL when saving an unpublished ' . $type . ' node';
$perms[] = 'Allow access to unpublished ' . $type . ' nodes if hash is provided';
}
return $perms;
}