function cpn_node_delete in Code per Node 7
Implements hook_node_delete().
Deletes from DB and file system.
File
- ./
cpn.module, line 340 - Primary hook implementations.
Code
function cpn_node_delete($node) {
db_delete('cpn')
->condition('nid', $node->nid)
->execute();
cpn_delete_file($node->nid . '.css');
cpn_delete_file($node->nid . '.js');
}