You are here

function _vkxp_watchdog in VK CrossPoster 6.2

Same name and namespace in other branches
  1. 6.3 vkxp.module \_vkxp_watchdog()
  2. 6 vkxp.module \_vkxp_watchdog()
  3. 7.2 vkxp.module \_vkxp_watchdog()
  4. 7 vkxp.module \_vkxp_watchdog()

Log messages and print it on the screen.

Parameters

$message: array with message and it severity.:

$link: link to view node.:

2 calls to _vkxp_watchdog()
vkxp_admin_main_settings in ./vkxp.admin.inc
Page callback. Return form with main settings.
_vkxp_get_upload_server in ./vkxp.module
Makes http query to api server to get upload uri.

File

./vkxp.module, line 379

Code

function _vkxp_watchdog($message, $link = NULL) {
  drupal_set_message($message['text'], $message['severity']);
  if ($message['severity'] == 'status') {
    $severity = WATCHDOG_INFO;
  }
  elseif ($message['severity'] == 'warning') {
    $severity = WATCHDOG_WARNING;
  }
  else {
    $severity = WATCHDOG_ERROR;
  }
  watchdog('vkxp', $message['text'], array(), $severity, $link);
}