title: How do I hide a block module on a single node with hook_page_alter?
body: <p>I have a block module called share_page.</p>
  
  <p>I have looked in the $page array and sure enough I have the region 'content', where this module always resides (but it is set not show on some pages).</p>
  
  <p>This is the function I have in a .module file</p>
  
  <pre><code>function mymodule_page_alter(&amp;$page) {
    unset($page['content']['share_page']['#block']);
  }
  </code></pre>
  
  <p>The error thrown is: Undefined index: share_page in mymodule_page_alter() </p>
  
  <p>But the block module (share_page) does not disappear. Does anyone know how I can hide this module?...and, also, hide it on just one particular page?</p>