You are here

public static function DbHandler::selectForNodeLoad in Node expire 7.2

Returns node_expire records for hook_node_load().

1 call to DbHandler::selectForNodeLoad()
NodeHookHandler::doNodeLoad in src/Module/Hook/NodeHookHandler.php
Implements hook_node_load().

File

src/Module/Db/DbHandler.php, line 105
DbHandler class.

Class

DbHandler
DbHandler class.

Namespace

Drupal\node_expire\Module\Db

Code

public static function selectForNodeLoad($node_expire_enabled) {
  $result = db_query('SELECT n.nid, n.type, expire, expired, lastnotify
       FROM {node} n
         INNER JOIN {node_expire} ne
           ON n.nid = ne.nid
       WHERE n.nid
         IN (:node_expire_enabled)', array(
    ':node_expire_enabled' => $node_expire_enabled,
  ));
  return $result;
}