You are here

function _edi_wd in Classified Ads 5.2

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

shortcut - log something to the watchdog log

9 calls to _edi_wd()
ed_classified_insert in ./ed_classified.module
Implementation of hook_insert().
_ed_classified_form_submit in ./ed_classified.module
Implementation of form submission handler
_ed_classified_get_vid in ./ed_classified_utils.inc
Returns (and possibly creates) a primary vocabulary for classified Repairs association with primary vocabulary if $detect is TRUE.
_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_ad in ./ed_classified_delete.inc
"purge" an expired ad (This will delete a classified ad that has been 'expired' and is older than the threshold)

... See full list

File

./ed_classified_utils.inc, line 479
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 _edi_wd($message, $severity = WATCHDOG_NOTICE, $link = NULL) {
  switch (reset(explode('.', DRUPAL_VERSION))) {
    case 5:
      watchdog(EDI_CLASSIFIED_MODULE_NAME, $message, $severity, $link);
      break;
    case 6:
    case 7:
      watchdog(EDI_CLASSIFIED_MODULE_NAME, $message, NULL, $severity, $link);
      break;
  }
}