You are here

function headerimage_node_delete in Header image 7

Implementation of hook_node_delete().

File

./headerimage.module, line 676
headerimage.module Conditionally display an node in a block.

Code

function headerimage_node_delete($node) {
  if (!empty($node->type) && in_array($node->type, variable_get('headerimage_node_type', array()), true)) {
    db_delete('headerimage')
      ->condition('nid', $node->nid)
      ->execute();
  }
}