You are here

function disable_messages_cache_messages in Disable Messages 7

Same name and namespace in other branches
  1. 6 disable_messages.module \disable_messages_cache_messages()

Cache messages for debug purposes.

2 calls to disable_messages_cache_messages()
disable_messages_apply_filters in ./disable_messages.module
Apply the filters to the messages.
disable_message_pre_render_debug_output in ./disable_messages.module
Pre render function to render the debug output into the page footer.

File

./disable_messages.module, line 242
The disable_messages module file.

Code

function disable_messages_cache_messages($messages = NULL) {
  static $cache;
  if ($messages) {
    $cache = $messages;
  }
  return $cache;
}