You are here

function node_field_node_delete in Node Field 7.2

Implements hook_node_delete().

File

./node_field.module, line 224
This module provide ability to add extra fields to any single node.

Code

function node_field_node_delete($node) {
  if (user_access('add/edit/delete fields to node')) {
    $node_fields = node_field_get_node_fields($node);
    if ($node_fields) {
      foreach ($node_fields as $node_field) {
        node_field_delete_node_field($node_field);
      }
    }
  }
}