You are here

public static function NodeHookHandler::hookNodeValidate in Node expire 7.2

Implements hook_node_validate().

1 call to NodeHookHandler::hookNodeValidate()
node_expire_node_validate in ./node_expire.module
Implements hook_node_validate().

File

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

Class

NodeHookHandler
NodeHookHandler class.

Namespace

Drupal\node_expire\Module\Hook

Code

public static function hookNodeValidate($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::doNodeValidate($ntype, $node);
}