You are here

public static function NodeHookHandler::hookNodeUpdate in Node expire 7.2

Implements hook_nodeapi_update().

1 call to NodeHookHandler::hookNodeUpdate()
node_expire_node_update in ./node_expire.module
Implements hook_nodeapi_update().

File

src/Module/Hook/NodeHookHandler.php, line 61
NodeHookHandler class.

Class

NodeHookHandler
NodeHookHandler class.

Namespace

Drupal\node_expire\Module\Hook

Code

public static function hookNodeUpdate($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');
  self::doNodeUpdateInsert($ntype, $node);
}