You are here

function homebox_page_alter in Homebox 7.2

Same name and namespace in other branches
  1. 7.3 homebox.module \homebox_page_alter()

Implements hook_page_alter()

File

./homebox.module, line 1596
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_page_alter(&$page) {

  // If the custom attribute is present, hide the blocks.
  if (isset($page['#homebox_hide_blocks'])) {
    unset($page['sidebar_first'], $page['sidebar_second']);
  }
}