function _vkxp_watchdog in VK CrossPoster 6.3
Same name and namespace in other branches
- 6 vkxp.module \_vkxp_watchdog()
- 6.2 vkxp.module \_vkxp_watchdog()
- 7.2 vkxp.module \_vkxp_watchdog()
- 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_access_token_submit in ./
vkxp.admin.inc - Second step of getting access token.
- _vkxp_get_upload_server in ./
vkxp.module - Makes http query to api server to get upload uri.
File
- ./
vkxp.module, line 402
Code
function _vkxp_watchdog($message, $link = NULL) {
// Set message about event.
drupal_set_message($message['text'], $message['severity']);
// Log event into watchdog.
if ($message['severity'] == 'status') {
$severity = WATCHDOG_INFO;
}
elseif ($message['severity'] == 'warning') {
$severity = WATCHDOG_WARNING;
}
else {
$severity = WATCHDOG_ERROR;
}
watchdog('vkxp', $message['text'], $severity, $link);
}