function diff_node_revision_access in Diff 7.3
Same name and namespace in other branches
- 6.2 diff.module \diff_node_revision_access()
- 7.2 diff.module \diff_node_revision_access()
Access callback for the node revisions page.
1 call to diff_node_revision_access()
- diff_latest in ./
diff.pages.inc - Menu callback - show latest diff for a given node.
2 string references to 'diff_node_revision_access'
- diff_menu in ./
diff.module - Implements hook_menu().
- diff_menu_alter in ./
diff.module - Implements hook_menu_alter().
File
- ./
diff.module, line 207 - Provides functionality to show a diff between two node revisions.
Code
function diff_node_revision_access($node, $op = 'view') {
$may_revision_this_type = variable_get('diff_enable_revisions_page_node_' . $node->type, TRUE) || user_access('administer nodes');
return $may_revision_this_type && _node_revision_access($node, $op);
}