You are here

function _revisioning_show_pending_nodes in Revisioning 6.3

Same name and namespace in other branches
  1. 8 revisioning.pages.inc \_revisioning_show_pending_nodes()
  2. 6.4 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. access rights of the logged-in user.

Parameters

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

$user_filter: One of NO_FILTER, I_CREATED or I_LAST_MODIFIED.

Return value

themed HTML

1 string reference to '_revisioning_show_pending_nodes'
revisioning_menu in ./revisioning.module
Implementation of hook_menu().

File

./revisioning.pages.inc, line 262
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;
}