function _vkxp_watchdog in VK CrossPoster 7.2
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 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.
3 calls to _vkxp_watchdog()
- vkxp_admin_access_token_submit in ./
vkxp.admin.inc - Second step of getting access token.
- vkxp_query in ./
vkxp.module - Function makes http query to VK. Allows using hook_vkxp_query_alter() for altering query params.
- _vkxp_get_upload_server in ./
vkxp.module - Makes http query to api server to get upload uri.
File
- ./
vkxp.module, line 521
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);
}