You are here

public static function DbHandler::deleteNodeExpire in Node expire 7.2

Deletes node_expire record by $nid.

Used in hook_node_delete() implementation.

2 calls to DbHandler::deleteNodeExpire()
NodeHookHandler::doNodeUpdateInsert in src/Module/Hook/NodeHookHandler.php
Implements hook_node_update() and hook_node_insert().
NodeHookHandler::hookNodeDelete in src/Module/Hook/NodeHookHandler.php
Implements hook_nodeapi_delete().

File

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

Class

DbHandler
DbHandler class.

Namespace

Drupal\node_expire\Module\Db

Code

public static function deleteNodeExpire($nid) {
  db_delete('node_expire')
    ->condition('nid', $nid)
    ->execute();
}