Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
i need to save in database the number of times a node is bieng viewed by users of a specific content type. I am displaying that node through panels. iam implemeting hook_nodeapi but iam not geeting in the $op = 'view' so that i can increment in database the counter related to that node. iam i follwoing the rite approach please help
Comments
Comment #1
j2r CreditAttribution: j2r commentedthere is statistics module to count the number of view of the node but it will not work with panel
here is the link of the same issue you may find help overthere
http://drupal.org/node/606384
Comment #2
prabeen.giri CreditAttribution: prabeen.giri commentedIf u are going to use your custom script then you can use 'nodeapi' hook on your custom module to achieve this;
Hope this helps :)