You are here

function _ed_classified_ad_expires_soon in Classified Ads 5

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

Helper function: does $expiration date expire "soon" (soon depends on who you ask)

1 call to _ed_classified_ad_expires_soon()
theme_ed_classified_ending_date in ./ed_classified_themefuncs.inc
Get a formatted div with a readable, friendly ad expiration date.

File

./ed_classified_utils.inc, line 318
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_expires_soon($expiration_date) {
  return $expiration_date - time() > 0 && $expiration_date - time() < _ed_classified_days_to_seconds(3);

  // TODO: use config var
}