You are here

function node_expire_node_update in Node expire 7

Same name and namespace in other branches
  1. 8 node_expire.module \node_expire_node_update()
  2. 7.2 node_expire.module \node_expire_node_update()

Implements hook_nodeapi_update().

File

./node_expire.module, line 204
Set a timer into your content, allowing you to perform customized actions.

Code

function node_expire_node_update($node) {

  // Only deal with node types that have the Node expire feature enabled.
  $ntypes = variable_get('node_expire_ntypes', array());
  if (!isset($ntypes[$node->type])) {
    return;
  }
  if (!($ntype = $ntypes[$node->type])) {
    return;
  }
  module_load_include('nodeapi.inc', 'node_expire');
  _node_expire_node_update_insert($ntype, $node);
}