You are here

function revisioning_block_view in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.pages.inc \revisioning_block_view()

Implements hook_block_view().

File

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

Code

function revisioning_block_view($delta = '') {
  $order = variable_get('revisioning_block_order', REVISIONING_REVISIONS_BLOCK_NEWEST_AT_TOP) == REVISIONING_REVISIONS_BLOCK_NEWEST_AT_TOP ? 'DESC' : 'ASC';
  $revisions = revisioning_get_revisions('view revision list', NO_FILTER, NO_FILTER, NO_FILTER, TRUE, TRUE, 100, 'timestamp ' . $order);
  if (!empty($revisions)) {
    return _revisioning_block_pending_revisions_content($revisions);
  }
}