public static function NodeHookHandler::hookNodeInsert in Node expire 7.2
Implements hook_nodeapi_insert().
1 call to NodeHookHandler::hookNodeInsert()
- node_expire_node_insert in ./
node_expire.module - Implements hook_node_insert().
File
- src/
Module/ Hook/ NodeHookHandler.php, line 77 - NodeHookHandler class.
Class
- NodeHookHandler
- NodeHookHandler class.
Namespace
Drupal\node_expire\Module\HookCode
public static function hookNodeInsert($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);
}