Drupal如何调用文章阅读次数
开启core中statistic模块
看下statistic模块中是如何调用的~~我记得是应该在hook_node_view~还是hook_exit中
应该是hook_node_view中加内容~~hook_exit中实现+1
应该是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']); ?>

浙公网安备 33010602011771号