You are here

function revisioning_block_info in Revisioning 8

Same name and namespace in other branches
  1. 7 revisioning.pages.inc \revisioning_block_info()

Implements hook_block_info().

A block that may be placed on selected pages, alerting the moderator when new content has been submitted for review. Shows titles of pending revisions as a series of links. Clicking a link takes the moderator straight to the revision in question.

File

./revisioning.pages.inc, line 362
Rendering and altering of pages and forms used by Revisioning.

Code

function revisioning_block_info() {
  $block['pending']['info'] = t('Pending revisions');
  $block['pending']['cache'] = DRUPAL_NO_CACHE;

  // Towards top of whatever region is chosen.
  $block['pending']['weight'] = -10;

  // Block is implemented by this module.
  $block['pending']['custom'] = FALSE;
  return $block;
}