mercredi 7 janvier 2015

How to print $node inside hook_exit


Vote count:

0




I have a requirement were I wanted to insert few values depending on whether the node is of type 'news', but when I try to do that with the following code, its seems not working, Could someone help with the code,



function hook_exit() {
if (isset($node) && $node->type == 'event') {
print_r('This is an event');
}
}


asked 1 min ago







How to print $node inside hook_exit

Aucun commentaire:

Enregistrer un commentaire