public static function NodeHookHandler::hookNodePrepare in Node expire 7.2
Implements hook_node_prepare().
1 call to NodeHookHandler::hookNodePrepare()
- node_expire_node_prepare in ./
node_expire.module - Implements hook_node_prepare().
File
- src/
Module/ Hook/ NodeHookHandler.php, line 29 - NodeHookHandler class.
Class
- NodeHookHandler
- NodeHookHandler class.
Namespace
Drupal\node_expire\Module\HookCode
public static function hookNodePrepare($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;
}
self::doNodePrepare($ntype, $node);
}