You are here

function pm_node_update in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pm.module \pm_node_update()

Implements hook_node_update().

File

./pm.module, line 638
Main module file for the Project Management module.

Code

function pm_node_update($node) {
  $enabled = pm_permission_get_enabled_types();
  $type = $node->type;
  if (in_array($type, $enabled)) {
    if (pm_permission_check_if_child_permission_needs_update($node)) {
      pm_permission_hunt_and_update_all_child_permission($node);
    }
  }
}