You are here

function _ed_classified_ad_expires_soon in Classified Ads 6.2

Same name and namespace in other branches
  1. 5.2 ed_classified_utils.inc \_ed_classified_ad_expires_soon()
  2. 5 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 319
Simple text-based classified ads module.

Code

function _ed_classified_ad_expires_soon($expiration_date) {
  return $expiration_date - REQUEST_TIME > 0 && $expiration_date - REQUEST_TIME < _ed_classified_days_to_seconds(3);

  // TODO: use config var
}