public static function DbHandler::getNodeExpireCountByNid in Node expire 7.2
Returns count of node_expire record by $nid.
1 call to DbHandler::getNodeExpireCountByNid()
- DbHandler::writeRecord in src/
Module/ Db/ DbHandler.php - Writes node_expire record.
File
- src/
Module/ Db/ DbHandler.php, line 50 - DbHandler class.
Class
- DbHandler
- DbHandler class.
Namespace
Drupal\node_expire\Module\DbCode
public static function getNodeExpireCountByNid($nid) {
$cnt = db_query('SELECT count(nid)
FROM {node_expire} ne
WHERE ne.nid = :nid', array(
':nid' => $nid,
))
->fetchField();
return $cnt;
}