I've been using a whitelist/blacklist PHP script to control the display of 2 different menu blocks, and its becoming bloated.
Menu_block 1 is the primary menu. Menu_block 2 is the supplementary menu.
I'm trying set the block visibility for Menu_block 1 via PHP - IF Menu_block 2 exists return FALSE, else return TRUE. Print Menu_block 1 unless Menu_block 2 exists.
PHP visibility for Menu_block 1
<?php
if(isset($block = module_exists('menu_block', 'block', '2')) {
return FALSE;
}
return TRUE;
?>
I'm not even sure if this is actually possible.