You are here

function _pm_permission_get_organization_id in Drupal PM (Project Management) 8

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

Finds the nid of the organization attached to a node.

1 call to _pm_permission_get_organization_id()
_pm_permission_get_belonged_id in includes/pm.permission.inc
Recursively hunt for a particular parent and get its id.

File

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

Code

function _pm_permission_get_organization_id($node, $max_depth) {
  return pm_permission_get_parent_nid_of_node($node, 'pmorganization', $max_depth);
}