function _vkxp_watchdog in VK CrossPoster 6
Same name and namespace in other branches
- 6.3 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:
3 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
- _vkxp_post_to_wall in ./
vkxp.module - Post node message with uploaded images to wall
File
- ./
vkxp.module, line 331
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);
}