You are here

function _revisioning_show_pending_nodes in Revisioning 8

Same name and namespace in other branches
  1. 6.4 revisioning.pages.inc \_revisioning_show_pending_nodes()
  2. 6.3 revisioning.pages.inc \_revisioning_show_pending_nodes()
  3. 7 revisioning.pages.inc \_revisioning_show_pending_nodes()

Return as a themed table a list of nodes that have pending revisions.

Also checks access rights of the logged-in user.

Parameters

string $access: Operation, one of 'view', 'update' or 'delete'.

int $user_filter: One of NO_FILTER, I_CREATED or I_LAST_MODIFIED.

Return value

string themed HTML

File

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

Code

function _revisioning_show_pending_nodes($access = 'view', $user_filter = NO_FILTER) {
  $is_moderated = user_access('administer nodes') ? NO_FILTER : TRUE;
  $content_summary = module_grants_monitor_accessible_content_summary($access, NO_FILTER, $user_filter, $is_moderated, TRUE);
  if (user_access('view revision status messages') && strpos($content_summary, 'No content') === FALSE && !user_access('administer nodes')) {
    _revisioning_set_info_message();
  }
  return $content_summary;
}