function messaging_debug_footer in Messaging 5
Same name and namespace in other branches
- 6 messaging_debug/messaging_debug.module \messaging_debug_footer()
- 6.2 messaging_debug/messaging_debug.module \messaging_debug_footer()
- 6.3 messaging_debug/messaging_debug.module \messaging_debug_footer()
Implementation of hook_footer()
Only debugging functionality for administrators
File
- messaging_debug/
messaging_debug.module, line 129 - Simple messaging using html page. Messaging method plug-in
Code
function messaging_debug_footer() {
if (user_access('administer messaging') && ($logs = messaging_log())) {
$output .= '<div class="messaging-debug">';
$lines = array();
foreach ($logs as $log) {
$lines[] = is_string($log) ? $log : '<pre>' . print_r($log, TRUE) . '</pre>';
}
$output .= implode('<br/>', $lines);
$output .= '</div>';
return $output;
}
}