I put a custom block (develop for me) on sidebar first region for every page, every fine, but I want that this block not render on the home page.
On my module, I made this:
funtion mymodule_preprocess_page(&$variables) {
if ($variables['is_front']) {
unset($variables['page']['sidebar_first']);
}
}
The sidebar not show, but the block already was rendered (I debug this code and the build function of my block was called before of mymodule_preprocess_page function). Then how I programmatically avoid that this block not render.