function _vkxp_watchdog in VK CrossPoster 7
Same name and namespace in other branches
- 6.3 vkxp.module \_vkxp_watchdog()
- 6 vkxp.module \_vkxp_watchdog()
- 6.2 vkxp.module \_vkxp_watchdog()
- 7.2 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_authorize in ./
vkxp.pages.inc - Page callback. Processes request result from http://vk.com.
- _vkxp_get_upload_server in ./
vkxp.module - Makes http query to api server to get upload uri.
File
- ./
vkxp.module, line 449
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'], array(), $severity, $link);
}