You are here

function _pmpermission_get_belonged_id in Drupal PM (Project Management) 7.2

Recursively hunt for a particular parent and get its id.

1 call to _pmpermission_get_belonged_id()
_pmpermission_grants_belonged in pmpermission/pmpermission.module
Generate grants for belonged permission set.

File

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

Code

function _pmpermission_get_belonged_id($node, $type, $belonged) {
  $belonged_nid = FALSE;
  switch ($belonged) {
    case 'Organization':
      $belonged_nid = _pmpermission_get_organization_id($node, 4);
      break;
    default:
      break;
  }
  return $belonged_nid;
}