[development] How to disable any block or sidebar from module

Khalid Baheyeldin kb at 2bits.com
Sat Jul 18 02:47:49 UTC 2009


Owen

Your solution takes the cake.

Still in the theme though, but very minimal:

function MYTHEME_preprocess_page(&$vars, $hook) {
  if (MYTHEME_custom_condition()) {
    unset($vars['right']);
  }
}

-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090717/09df001a/attachment-0001.htm>


More information about the development mailing list