You are here

private function video_amazon_s3::watchdog in Video 6.4

Same name and namespace in other branches
  1. 6.5 plugins/video_s3/video_s3.lib.inc \video_amazon_s3::watchdog()
2 calls to video_amazon_s3::watchdog()
video_amazon_s3::pushFile in plugins/video_s3/video_s3.lib.inc
video_amazon_s3::queue in plugins/video_s3/video_s3.lib.inc

File

plugins/video_s3/video_s3.lib.inc, line 390

Class

video_amazon_s3

Code

private function watchdog($message, $variables = array(), $severity = WATCHDOG_NOTICE, $nid = NULL) {
  $link = NULL;
  if (is_object($nid)) {
    if (isset($nid->nid) && $nid->nid > 0) {
      $link = l(t('view node'), 'node/' . intval($nid->nid));
    }
  }
  elseif ($nid > 0) {
    $link = l(t('view node'), 'node/' . intval($nid));
  }
  watchdog('amazon_s3', $message, $variables, $severity, $link);
}