Respond to node deletion.
This hook is invoked from entity_delete_multiple() after field_attach_delete() has been called and after the node has been removed from the database.
\Drupal\Core\Entity\EntityInterface $node: The node that has been deleted.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_node_delete(\Drupal\Core\Entity\EntityInterface $node) {
drupal_set_message(t('Node: @title has been deleted', array(
'@title' => $node
->label(),
)));
}