You are here

function _auto_expire_get_expire in Auto Expire 7

Same name and namespace in other branches
  1. 5 auto_expire.module \_auto_expire_get_expire()

Retrieves the expire record for given nid.

Parameters

$nid:

Return value

mixed

4 calls to _auto_expire_get_expire()
views_handler_field_auto_expire_link_extend::render in ./views_handler_field_auto_expire_link_extend.inc
Render the field.
_auto_expire_expiry in ./auto_expire.module
Implements expiry form.
_auto_expire_notify_expired in ./auto_expire.module
Sets up the expired notification for expiry.
_auto_expire_notify_warning in ./auto_expire.module
Sets up the warning notification for expiry.

File

./auto_expire.module, line 688

Code

function _auto_expire_get_expire($nid) {
  return db_query('SELECT expire FROM {auto_expire}
  WHERE nid = :nid', array(
    ':nid' => $nid,
  ))
    ->fetchField();
}