You are here

function workbench_moderation_workbench_block in Workbench Moderation 7.3

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

Implements hook_block_view_workbench_block().

Show the editorial status of this node.

File

./workbench_moderation.module, line 2112
Content moderation for Workbench.

Code

function workbench_moderation_workbench_block() {
  $output = array();
  foreach (workbench_moderation_set_message() as $message) {
    $output[] = t('!label: <em>!message</em>', array(
      '!label' => $message['label'],
      '!message' => $message['message'],
    ));
  }
  return $output;
}