function pmperson_delete in Drupal PM (Project Management) 7
Implements hook_delete().
File
- pmperson/
pmperson.module, line 516
Code
function pmperson_delete($node) {
// Notice that we're matching all revision, by using the node's nid.
db_delete('pmperson')
->condition('nid', $node->nid)
->execute();
global $user;
if ($user->uid == $node->user_uid) {
$user->pmperson_nid = -1;
$user->pmorganization_nid = -1;
}
}