You are here

function _filelog_ui_format_message in File Log 6.2

Formats a log message for display.

Parameters

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

3 calls to _filelog_ui_format_message()
filelog_ui_entry in ./filelog_ui.pages.inc
Menu callback; displays details about a log message.
filelog_ui_overview in ./filelog_ui.pages.inc
Menu callback; displays a listing of log messages.
filelog_ui_top in ./filelog_ui.pages.inc
Menu callback; generic function to display a page of the most frequent filelog entries of a specified type.

File

./filelog_ui.pages.inc, line 347
Log viewer page callbacks for the filelog_ui module.

Code

function _filelog_ui_format_message($flog) {
  if ($flog->variables) {
    return t($flog->message, unserialize($flog->variables));
  }
  else {
    return t($flog->message);
  }
}