function _revisioning_show_pending_nodes in Revisioning 7
Same name and namespace in other branches
- 8 revisioning.pages.inc \_revisioning_show_pending_nodes()
- 6.4 revisioning.pages.inc \_revisioning_show_pending_nodes()
- 6.3 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 310 - 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;
}