You are here

function _book_outline_access in Drupal 7

Same name and namespace in other branches
  1. 6 modules/book/book.module \_book_outline_access()

Access callback: Determines if the outline tab is accessible.

Parameters

$node: The node whose outline tab is to be viewed.

1 call to _book_outline_access()
_book_outline_remove_access in modules/book/book.module
Access callback: Determines if the user can remove nodes from the outline.
1 string reference to '_book_outline_access'
book_menu in modules/book/book.module
Implements hook_menu().

File

modules/book/book.module, line 203
Allows users to create and organize related content in an outline.

Code

function _book_outline_access($node) {
  return user_access('administer book outlines') && node_access('view', $node);
}