Index: ctools.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ctools/ctools.module,v
retrieving revision 1.38
diff -u -p -r1.38 ctools.module
--- ctools.module	15 Oct 2010 22:10:59 -0000	1.38
+++ ctools.module	27 Oct 2010 23:26:08 -0000
@@ -476,12 +476,16 @@ function ctools_preprocess_node(&$vars) 
   }
 }
 
+function ctools_page_alter(&$page) {
+  $page['#post_render'][] = 'ctools_page_token_processing';
+}
+
 /**
- * A theme preprocess function to allow content type plugins to use page
+ * A theme post_render callback to allow content type plugins to use page
  * template variables which are not yet available when the content type is
  * rendered.
  */
-function ctools_preprocess_page(&$variables) {
+function ctools_page_token_processing($children, $elements) {
   $tokens = ctools_set_page_token();
   if (!empty($tokens)) {
     foreach ($tokens as $token => $key) {
@@ -502,8 +506,9 @@ function ctools_preprocess_page(&$variab
           break;
       }
     }
-    $variables['content'] = strtr($variables['content'], $tokens);
+    $children = strtr($children, $tokens);
   }
+  return $children;
 }
 
 // -----------------------------------------------------------------------
