title: drupal's hook_preprocess_page not working as expected
body: <p>i am having an issue where hook_preprocess_page 's changes to &amp;$variables is not being rendered, even though it is the last item under $theme_registry['page']['preprocess functions']. logging contents of $variables to a file show the contents changed, but contents appear unchanged on the site. flushed all cache on drupal, flushed all browser caches and still the same result.</p>
  
  <pre><code>/**
   * Implementation of hook_preprocess_page().
   */
  function grinchlist_preprocess_page(&amp;$variables) {
  
    if (grinchlist_usercheck($variables['user']['uid'])) {
      $variables['scripts'] = preg_replace('/&lt;script[^&gt;]*christmas_snow.*&lt;\/script&gt;/','',$variables['scripts']);
    }
    file_put_contents('/tmp/vars.txt',print_r($variables,true));
  }
  </code></pre>
  
  <p>the /tmp/vars.txt shows the variables properly, but the browser still show the script being loaded.</p>
  
  <p>this may be a silly example, but i've had this issue with the hook_preprocess_page in other instances and it would really help out to understand what is going on here...</p>
  
  <p>thanks.</p>