--- sitemenu.module.orig 2006-04-19 21:33:26.000000000 -0700 +++ sitemenu.module 2006-04-19 21:48:29.000000000 -0700 @@ -69,9 +69,14 @@ ); $form['sitemenu_node_count'] = array( '#type' => 'checkbox', - '#title' => t('Show number of nodes for each term'), + '#title' => t('Show number of nodes for each term on site map page'), '#default_value' => variable_get("sitemenu_node_count", 1), ); + $form['sitemenu_node_count_in_block'] = array( + '#type' => 'checkbox', + '#title' => t('Show number of nodes for each term in menu block'), + '#default_value' => variable_get("sitemenu_node_count_in_block", 1), + ); $form['sitemenu_author_and_comments'] = array( '#type' => 'checkbox', '#title' => t('Show Author and number of Comments (in mousover)'), @@ -148,7 +153,8 @@ $tree = taxonomy_get_tree($vocabulary->vid); $get_node_count = variable_get("sitemenu_node_count", "1"); - if ( $get_node_count && $mode == 'page') { + $get_node_count_in_block = variable_get("sitemenu_node_count_in_block", "1"); + if ( ($get_node_count && $mode == 'page') || ($get_node_count_in_block && $mode == 'block') ) { // append the node count to each term name for ($m=0; $mtid, $type)) {