You are here

function _dblog_format_message in Drupal 6

Formats a log message for display.

Parameters

$dblog: An object with at least the message and variables properties

3 calls to _dblog_format_message()
dblog_event in modules/dblog/dblog.admin.inc
Menu callback; displays details about a log message.
dblog_overview in modules/dblog/dblog.admin.inc
Menu callback; displays a listing of log messages.
dblog_top in modules/dblog/dblog.admin.inc
Menu callback; generic function to display a page of the most frequent dblog events of a specified type.

File

modules/dblog/dblog.admin.inc, line 243
Administrative page callbacks for the dblog module.

Code

function _dblog_format_message($dblog) {

  // Legacy messages and user specified text
  if ($dblog->variables === 'N;') {
    return $dblog->message;
  }
  else {
    return t($dblog->message, unserialize($dblog->variables));
  }
}