You are here

function _edi_wd in Classified Ads 6.2

Same name and namespace in other branches
  1. 5.2 ed_classified_utils.inc \_edi_wd()
  2. 5 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
Implements 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.
_ed_classified_notify_advertisers_periodic in ./ed_classified_notifications.inc
Process "periodic" notifications.
_ed_classified_purge_ad in ./ed_classified_delete.inc
"purge" an expired ad.

... See full list

File

./ed_classified_utils.inc, line 458
Simple text-based classified ads module.

Code

function _edi_wd($message, $severity = WATCHDOG_NOTICE, $link = NULL) {
  $version = explode('.', DRUPAL_VERSION);
  switch (reset($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;
  }
}