Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • But, I can't detect if I should unset it here because my condition that I'm checking is in $node...and $node isn't an available variable in preprocess_html Commented Sep 14, 2012 at 19:17
  • 1
    If template_process_page is no good, then you can certainly remove the class in template_process_html. You should be able to find some hook that runs before template_process_html (e.g. template_preprocess_page) that has access to $node; you could set a flag at in that function, and act on it in template_process_html. Commented Sep 14, 2012 at 19:33
  • if I could get that "flag" in preprocess_html that's probably what I need. How would I set that in page and pass it to html? Commented Sep 14, 2012 at 19:48
  • 1
    Isn't $variables['page']['sidebar_first'] unset in preprocess_html if you've already altered it in preprocess_page? Commented Sep 14, 2012 at 20:28