You are here

function _pm_permission_get_belonged_id in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 includes/pm.permission.inc \_pm_permission_get_belonged_id()

Recursively hunt for a particular parent and get its id.

1 call to _pm_permission_get_belonged_id()
_pm_permission_grants_belonged in includes/pm.permission.inc
Generate grants for belonged permission set.

File

includes/pm.permission.inc, line 552
Main module file for the pm_permission module.

Code

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