You are here

function _pmpermission_get_organization_id in Drupal PM (Project Management) 7.2

Finds the nid of the organization attached to a node.

1 call to _pmpermission_get_organization_id()
_pmpermission_get_belonged_id in pmpermission/pmpermission.module
Recursively hunt for a particular parent and get its id.

File

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

Code

function _pmpermission_get_organization_id($node, $max_depth) {
  return pmpermission_get_parent_nid_of_node($node, 'pmorganization', $max_depth);
}