You are here

function protected_node_perm in Protected Node 6

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

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

1 call to protected_node_perm()
protected_node_requirements in ./protected_node.install
Implementation of hook_requirements().

File

./protected_node.module, line 79

Code

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