You are here

function pmpermission_node_grants in Drupal PM (Project Management) 7.2

Implements hook_node_grants().

File

pmpermission/pmpermission.module, line 692
Main module file for the pmpermission module.

Code

function pmpermission_node_grants($account, $op) {
  $grants = array();
  foreach (pmpermission_get_enabled_types() as $type) {
    $grant_per_type = pmpermission_grants_list($account, $op, $type);
    if ($grant_per_type) {
      $grants += $grant_per_type;
    }
  }
  return $grants;
}