You are here

function _nat_check in Node Auto Term [NAT] 7.2

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

Check if a node is a NAT node.

Parameters

$node: The node to be checked.

4 calls to _nat_check()
nat_node_delete in ./nat.module
Implements hook_node_delete().
nat_node_insert in ./nat.module
Implements hook_node_insert().
nat_node_load in ./nat.module
Implements hook_node_load().
nat_node_update in ./nat.module
Implements hook_node_update().

File

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

Code

function _nat_check($node) {
  $nat_config = _nat_variable_get();
  return isset($nat_config['types'][$node->type]) && !empty($nat_config['types'][$node->type]);
}