Drupal如何调用文章阅读次数

 开启core中statistic模块 
看下statistic模块中是如何调用的~~我记得是应该在hook_node_view~还是hook_exit中 
应该是hook_node_view中加内容~~hook_exit中实现+1 
 
 statistic.module中hook_node_view中貌似是这个$statistics = statistics_get($node->nid);调用的  
 
 <?php $views_count = statistics_get($node->nid); print($views_count['totalcount']); ?> 
posted @ 2013-11-04 11:43  堕落的惜花  阅读(305)  评论(0)    收藏  举报