I am trying to turn off a block in drupal using existing code.
<?php
$node = node_load(arg(1));
$type = $node->type;
if(substr($_SERVER["REQUEST_URI"], 0, 13) == '/our-people')
{
return TRUE;
}
else
{
return in_array($type,array('3_column_interior_page', '3_column_faculty_bio_page'));
}
?>
I wanted to add a page that will not show the block...
<?php
$node = node_load(arg(1));
$type = $node->type;
if(substr($_SERVER["REQUEST_URI"], 0, 13) == '/our-people')
{
return TRUE;
}
// new code here - I don't want this block to show up on the info sessions page.
elseif ($_SERVER["REQUEST_URI"], 0, 13) == '/information-sessions'
{
return FALSE;
}
// end new code
elseif
{
return in_array($type,array('3_column_interior_page', '3_column_faculty_bio_page'));
}
?>
However it won't work. Being mostly a beginner, I am not sure how else to write it out.Any thoughts or a direction will help.
Thanks
Tim