function diff_node_revision_access in Diff 7.2
Same name and namespace in other branches
- 6.2 diff.module \diff_node_revision_access()
- 7.3 diff.module \diff_node_revision_access()
Access callback for the node revisions page.
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 109 - 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('enable_revisions_page_' . $node->type, TRUE) || user_access('administer nodes');
return $may_revision_this_type && _node_revision_access($node, $op);
}