You are here

function nat_node_update in Node Auto Term [NAT] 7.2

Same name and namespace in other branches
  1. 7 nat.module \nat_node_update()

Implements hook_node_update().

File

./nat.module, line 136
NAT - node auto term - is a helper module that automatically creates a term using the same title as a node.

Code

function nat_node_update($node) {
  if (_nat_check($node)) {

    // Ensure that this is a node form submission and not a direct node_save
    // operation.

    /**
     * @see http://drupal.org/node/197532, http://drupal.org/node/188377
     */
    if (isset($node->form_id)) {
      _nat_update_terms($node);
    }
  }
}