You are here

function disable_messages_cache_messages in Disable Messages 6

Same name and namespace in other branches
  1. 7 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_messages_footer in ./disable_messages.module
Implementation of hook_footer().

File

./disable_messages.module, line 175

Code

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