function _emaillog_format_dblog_message in Logging and alerts 6
Same name and namespace in other branches
- 7 emaillog/emaillog.module \_emaillog_format_dblog_message()
Injects variables into dblog message and formats it for email subject.
1 call to _emaillog_format_dblog_message()
- emaillog_mail in emaillog/
emaillog.module - Implementation of hook_mail().
File
- emaillog/
emaillog.module, line 113 - Sends logs and alerts to email addresses.
Code
function _emaillog_format_dblog_message($event) {
if (empty($event['variables'])) {
$message = strip_tags($event['message']);
}
else {
$message = strip_tags(t($event['message'], $event['variables']));
}
return truncate_utf8($message, 60, TRUE, TRUE);
}