You are here

function workbench_moderation_set_message in Workbench Moderation 7.2

Same name and namespace in other branches
  1. 7.3 workbench_moderation.module \workbench_moderation_set_message()
  2. 7 workbench_moderation.module \workbench_moderation_set_message()

Stores status messages for delivery.

This function stores up moderation messages to be passed on to workbench_moderation_workbench_block().

This function uses a static variable so that function can be called more than once and the array built up.

Parameters

$new_messages: An array of messages to be added to the block.

Return value

An array of messages to be added to the block.

See also

workbench_moderation_workbench_block()

workbench_moderation_messages()

2 calls to workbench_moderation_set_message()
workbench_moderation_messages in ./workbench_moderation.module
Sets status messages for a node.
workbench_moderation_workbench_block in ./workbench_moderation.module
Implements hook_block_view_workbench_block().

File

./workbench_moderation.module, line 364
workbench_moderation.module

Code

function workbench_moderation_set_message($new_messages = array()) {
  static $messages = array();
  $messages = array_merge($messages, $new_messages);
  return $messages;
}