Index: toolbar.module
===================================================================
--- toolbar.module	(revision 768)
+++ toolbar.module	(working copy)
@@ -96,6 +96,10 @@
 function toolbar_footer($main = 0) {
   global $user;
 
+  if (toolbar_suppress(FALSE)) {
+    return;
+  }
+
   $output = '';
   $toolbar_name = _toolbar_get_user_toolbar($user);
 
@@ -625,3 +629,14 @@
 function _toolbar_set_user_toolbar($toolbar, $user) {
   db_query("INSERT INTO {toolbar_user} VALUES(%d, '%s')", $user->uid, $toolbar['name']);
 }
+
+/**
+ * Used to programatically suppress the output of the toolbar.
+ */
+function toolbar_suppress($set = TRUE) {
+  static $suppress = FALSE;
+  if (!empty($set)) {
+    $suppress = TRUE;
+  }
+  return $suppress;
+}
