You are here

function ed_classified_ad_expired in Classified Ads 7.2

Same name and namespace in other branches
  1. 5.2 ed_classified_utils.inc \ed_classified_ad_expired()
  2. 5 ed_classified_utils.inc \ed_classified_ad_expired()
  3. 6.2 ed_classified_utils.inc \ed_classified_ad_expired()

Determine whether a node is expired given a target timestamp An ad is considered to have 'expired' if the $time parameter is larger than the node's expires_on field.

1 call to ed_classified_ad_expired()
ed_classified_admin_overview in ./ed_classified.module
Present admin options.

File

./ed_classified_utils.inc, line 472
Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…

Code

function ed_classified_ad_expired($node, $time) {
  if ($node->type != EDI_CLASSIFIED_MODULE_NAME) {
    return FALSE;
  }
  return $time >= $node->expires_on;
}