--- booktree.module.old 2010-03-24 17:56:52.000000000 -0400 +++ booktree.module 2010-06-21 11:33:11.000000000 -0400 @@ -79,6 +79,15 @@ function booktree_configure() { '#description' => t('Start point of the tree (the root).') ); + + $form['booktree_show_start'] = array( + '#type' => 'checkbox', + '#title' => t('Show Root Node Content?'), + '#required' => TRUE, + '#default_value' => variable_get('booktree_show_start', TRUE), + '#description' => t('Should booktree print the root node\'s content above the tree?') + + ); $form['booktree_deep'] = array( '#type' => 'textfield', @@ -119,10 +128,15 @@ function booktree_indice() { $maxricursione = variable_get('booktree_deep', 5)+2; $trimval = variable_get('booktree_trim', 35); } + $booktree_show_start = variable_get('booktree_show_start', TRUE); $node = node_load(array('nid' => $booktree_start)); drupal_set_title(check_plain($node->title)); - $content = check_markup($node->body, $node->format, FALSE); + if ($booktree_show_start) { + $content = check_markup($node->body, $node->format, FALSE); + } else { + $content = ''; + } $ricursione = 1; $content .= _booktree_mostra_figli($node->book['mlid'], $node->nid, $node->title, $ricursione, $maxricursione, $trimval, $node->book['mlid']);