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

5.x
Neil Drumm 2006-11-30 02:04:31 +00:00
parent 0d99880f96
commit dca26f5ebd
1 changed files with 1 additions and 1 deletions

View File

@ -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"