function _messaging_debug_format_log in Messaging 6.3
Same name and namespace in other branches
- 6.2 messaging_debug/messaging_debug.module \_messaging_debug_format_log()
Format complex log as collapsible fieldset
1 call to _messaging_debug_format_log()
- messaging_log_format in ./
messaging.module - Format logs
1 string reference to '_messaging_debug_format_log'
- messaging_log_format in ./
messaging.module - Format logs
File
- messaging_debug/
messaging_debug.module, line 341 - Simple messaging using html page. Messaging method plug-in
Code
function _messaging_debug_format_log($type, $string, $append, $objects) {
drupal_add_js('misc/collapse.js');
$content = '';
/*
foreach ($objects as $key => $value) {
$content .= _messaging_debug_format_object($value, $key);
}
*/
if (!empty($objects['debug_objects'])) {
$objects = array_merge($objects, array_map('unserialize', $objects['debug_objects']));
unset($objects['debug_objects']);
}
$content = _messaging_debug_format_array($objects);
return _messaging_debug_format_group($string, $content, $append ? implode(' ', $append) : '');
}