function _book_outline_access

Access callback: Determines if the outline tab is accessible.

Path:

  • admin/content/book/%node
  • node/%node/outline

Parameters

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

See also

book_menu()

1 call to _book_outline_access()
_book_outline_remove_access in drupal/core/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 drupal/core/modules/book/book.module
Implements hook_menu().

File

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

Code

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