Change theme variables in your module

This is how you can affect variables before sent to theme templates based on the URL. In this case I had to remove an empty sidebar in RootCandy theme.

<?php
/**
 * Implementation of hook_preprocess_page().
 */
function support_filter_preprocess_page(&$vars) {
  if (
arg(0) == "domainuser" OR arg(0) == "support_filter") {
     unset(
$vars['admin_left']);
  }

}
?>

Don't forget to rebuild theme registry by use admin_menu modules Flush all caches > Theme Registry or drupal_rebuild_theme_registry();

Knowledge keywords: