You are here

function globallink_node_delete in GlobalLink Connect for Drupal 7.7

Inplementation of hook_node_delete for removing nid from submission on node/entity delete.

File

./globallink.module, line 1879
GlobalLink translation module.

Code

function globallink_node_delete($node) {
  if (isset($_SESSION['nids'][$node->nid . '-' . $node->vid])) {
    unset($_SESSION['nids'][$node->nid . '-' . $node->vid]);
  }
  if (isset($_SESSION['eids'][$node->nid . '-' . $node->vid])) {
    unset($_SESSION['eids'][$node->nid . '-' . $node->vid]);
  }
}