You are here

function nopremium_perm in Node Option Premium 6

Implementation of hook_perm().

File

./nopremium.module, line 177
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_perm() {
  $perms = array();
  foreach (array_keys(node_get_types('names')) as $type) {
    $perms[] = 'view full ' . $type . ' premium content';
    $perms[] = 'override ' . $type . ' premium option';
  }
  return $perms;
}