You are here

function _ed_classified_days_to_seconds in Classified Ads 5

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

convert days to # seconds

5 calls to _ed_classified_days_to_seconds()
_ed_classified_ad_expires_soon in ./ed_classified_utils.inc
Helper function: does $expiration date expire "soon" (soon depends on who you ask)
_ed_classified_form_submit in ./ed_classified.module
Implementation of form submission handler
_ed_classified_get_default_ad_duration_in_seconds in ./ed_classified_utils.inc
Get default ad duration in seconds
_ed_classified_notify_advertisers_periodic in ./ed_classified_notifications.inc
Process "periodic" notifications Create a notification if a user has ads nearing expiration
_ed_classified_purge in ./ed_classified_delete.inc
Purge old, expired classified ads

File

./ed_classified_utils.inc, line 85
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_days_to_seconds($days) {
  return $days * 86400;

  // 60 * 60 * 24 = 86400
}