Hi. I have a content type and I need to change the node's title when the node is view-ed.
I have created a hook_nodeapi() function in one of my module:
function ostoni_admin_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { switch ($op) { case 'view': if ($node->type == 'machine_new') { dpm("ecco"); $node->title = t("Macchina nuova").": ".$node->title; } } }
But when I view the node page I see the node's title without my modification.
If I print the node's structure I see that node->title is changed.
Where is my error ? I use acquia theme without modification.
M.