You are here

function protected_node_perm in Protected Node 5

Same name and namespace in other branches
  1. 6 protected_node.module \protected_node_perm()

Implementation of hook_perm(). @link http://api.drupal.org/api/function/hook_perm/5

1 call to protected_node_perm()
protected_node_requirements in ./protected_node.module
Implementation of hook_requirements(). Checks for at least role who has access to protected node functionality. @link http://api.drupal.org/api/function/hook_requirements/5

File

./protected_node.module, line 68

Code

function protected_node_perm() {
  $perms = array(
    'access protected content',
    'bypass password protection',
    'edit protected content',
  );
  foreach (array_keys(node_get_types()) as $type) {
    $perms[] = 'edit protected ' . $type;
  }
  return $perms;
}