Home ›
Unsetting things in Nodeapi View works to hide themUnsetting things in Nodeapi View works to hide them
Submitted by Benjamin Melançon on November 27, 2007 - 1:59pm
<pre>
function wsf_action_nodeapi(&$node, $op) {
if ($node->type == 'action') {
// when showing a node: load, view, alter
switch ($op) {
case 'view':
// unsetting things in nodeapi view *does* work
unset($node->content['locations']);
break;
...
}
}
}</pre>
Comments
Post new comment