Index: helptip.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/helptip/helptip.module,v retrieving revision 1.11 diff -u -u -p -r1.11 helptip.module --- helptip.module 17 Dec 2006 04:35:26 -0000 1.11 +++ helptip.module 4 Jan 2007 21:00:10 -0000 @@ -113,10 +113,13 @@ function helptip_block($op = 'list', $de $block = array(); while ($data = db_fetch_object($result)) { $node = node_load($data->nid); - if (!$block['subject']) - $block['subject'] = t($settings['title'], - array('%title' => check_plain($node->title))); - $items[] = theme('helptip_body', $node); + if ($body = theme('helptip_body', $node)) { + // there is a helptip to display + if (!$block['subject']) + $block['subject'] = t($settings['title'], + array('%title' => check_plain($node->title))); + $items[] = $body; + } } if (count($items)) { $block['content'] = theme('helptip_list', $items); @@ -365,6 +368,7 @@ function helptip_settings_form() { */ function theme_helptip_body($node) { $node->teaser = check_markup($node->teaser, $node->format, FALSE); + // calculate body, too, as it controls the 'read more' link. $node->body = check_markup($node->body, $node->format, FALSE); return '
' . $node->teaser . theme('helptip_links', $node) . "
\n";