Removing/disabling "Add To" option

Permalink
Is there a way to remove or disable the "Add to..." option from a particular block or area?

stephmars
 
ScottC replied on at Permalink Best Answer Reply
ScottC
$area->disableControls();
$area->display($c);


or i guess after 2 blocks disable them(for the rest of you guys maybe reading this)

if(is_array($area->getAreaBlocksArray()) && count($area->getAreaBlocksArray()) >= 2) $area->disableControls();
stephmars replied on at Permalink Reply
stephmars
Thanks, but this got me the following error:

Fatal error: Call to a member function disableControls() on a non-object in /home/site1/site1.com/client/themes/theme1/elements/header.php on line 24
stephmars replied on at Permalink Reply
stephmars
Works now, I changed

$area->disableControls();


to

$a->disableControls();


Thanks for your help!!