Commit dca26f5e authored by drumm's avatar drumm
Browse files

#26552 by Heine. Add child page to unpublished book nodes doesn't work, so remove the link.

parent 0d99880f
......@@ -63,7 +63,7 @@ function book_link($type, $node = NULL, $teaser = FALSE) {
if ($type == 'node' && isset($node->parent)) {
if (!$teaser) {
if (book_access('create', $node)) {
if (book_access('create', $node) && $node->status == 1) {
$links['book_add_child'] = array(
'title' => t('Add child page'),
'href' => "node/add/book/parent/$node->nid"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment