You are here

function nodesinblock_node_delete in Nodes In Block 7

Implements hook_node_delete().

File

./nodesinblock.module, line 223
Nodes in block makes it possible to add multiple nodes in one block.

Code

function nodesinblock_node_delete($node) {
  _nodeisblock_load($node);
  if (isset($node->nodesinblock)) {
    $node->nodesinblock_delta = $node->nodesinblock;
    _nodesinblock_save($node, 'delete');
  }
}