You are here

function _views_watchdog_format_message in Views Watchdog 7.3

Same name and namespace in other branches
  1. 6.3 views_watchdog.module \_views_watchdog_format_message()
  2. 6.2 views_watchdog.module \_views_watchdog_format_message()

Helper function; formats watchdog message.

2 calls to _views_watchdog_format_message()
views_handler_field_watchdog_message::render in views/handlers/views_handler_field_watchdog_message.inc
Render the field.
views_plugin_row_watchdog_rss::render in views/plugins/views_plugin_row_watchdog_rss.inc
Render a row object. This usually passes through to a theme template of some form, but not always.

File

./views_watchdog.module, line 151
This module extends the Views module and allows to create customized lists (pages, blocks, feeds) of watchdog entries.

Code

function _views_watchdog_format_message($message, $variables) {
  return $variables === 'N;' ? $message : t($message, unserialize($variables));
}