You are here

function messaging_debug_footer in Messaging 6

Same name and namespace in other branches
  1. 5 messaging_debug/messaging_debug.module \messaging_debug_footer()
  2. 6.2 messaging_debug/messaging_debug.module \messaging_debug_footer()
  3. 6.3 messaging_debug/messaging_debug.module \messaging_debug_footer()

Implementation of hook_footer()

Only debugging functionality for administrators, uses devel module facility

File

messaging_debug/messaging_debug.module, line 314
Simple messaging using html page. Messaging method plug-in

Code

function messaging_debug_footer() {
  if (variable_get('messaging_debug', 0) && user_access('administer messaging') && ($logs = messaging_log()) && function_exists('dsm')) {
    foreach ($logs as $log) {
      dsm($log);
    }
  }
}