Index: modules/book/book.module =================================================================== RCS file: /cvs/drupal/drupal/modules/book/book.module,v retrieving revision 1.433 diff -u -r1.433 book.module --- modules/book/book.module 11 Aug 2007 14:06:15 -0000 1.433 +++ modules/book/book.module 13 Aug 2007 23:03:37 -0000 @@ -526,8 +526,16 @@ */ function book_remove_form(&$form_state, $node) { $form['#node'] = $node; + $title = array('%title' => $node->title); - return confirm_form($form, t('Are you sure you want to remove %title from the book hierarchy?', array('%title' => $node->title)), 'node/'. $node->nid, array('yes' => t('Remove'))); + if ($node->book['has_children']) { + $description = t('%title has associated child pages, which will be relocated automatically. This may make it difficult to re-create the existing hierarchy.', $title); + } + else { + $description = t('%title may be added to hierarchy again using the Outline tab.', $title); + } + + return confirm_form($form, t('Are you sure you want to remove %title from the book hierarchy?', $title), 'node/'. $node->nid, $description, t('Remove')); } /**