function _publishcontent_view_access in Publish Content 6
Same name and namespace in other branches
- 5.2 publishcontent.module \_publishcontent_view_access()
DEPRECATED: This function will be going away. publish_content_menu_alter was using this function. Leaving in place to avoid fatal errors due to outdated menu cache.
File
- ./
publishcontent.module, line 74 - Add button to publish or unpublish a node, with access control based on the node type
Code
function _publishcontent_view_access($node) {
return user_access('un/publish ' . check_plain($node->type) . ' content') || user_access('un/publish *all* content') || node_access('view', $node);
}