You are here

function disable_messages_footer in Disable Messages 6

Implementation of hook_footer().

File

./disable_messages.module, line 186

Code

function disable_messages_footer($main = 0) {
  if (variable_get('disable_messages_enable_debug', '1')) {
    $style = '';
    if (variable_get('disable_messages_debug_visible_div', '0') == '0') {
      $style = 'style="display:none;"';
    }
    return '<div id="disable_messages-debug-div" ' . $style . '><pre>' . check_plain(var_export(disable_messages_cache_messages(), TRUE)) . '</pre></div>';
  }
}