function _pm_permission_watchdog_log in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 includes/pm.permission.inc \_pm_permission_watchdog_log()
Log and display the error.
Parameters
string $error: Error to report.
bool $backtrace: TRUE if watchdog log should include full backtrace of the error.
2 calls to _pm_permission_watchdog_log()
- pm_permission_get_parent_nid_of_node in includes/
pm.permission.inc - Recursively hunts and find out the first parent node of given type.
- _pm_permission_get_assigned_id in includes/
pm.permission.inc - Should recursively hunt for a particular parent and get its id.
File
- includes/
pm.permission.inc, line 684 - Main module file for the pm_permission module.
Code
function _pm_permission_watchdog_log($error, $backtrace = TRUE) {
$err_msg = t("Error message: %error", array(
'%error' => $error,
));
watchdog('PHP', $err_msg, WATCHDOG_ERROR);
drupal_set_message($err_msg, 'error');
}