You are here

function mediafront_statistics_playlist_node in MediaFront 6

Same name and namespace in other branches
  1. 6.2 plugins/mediafront_statistics/mediafront_statistics.module \mediafront_statistics_playlist_node()

Implementation of hook_playlist_node

File

plugins/mediafront_statistics/mediafront_statistics.module, line 42

Code

function mediafront_statistics_playlist_node($node, $args) {
  $additions = array();
  $node_count = db_result(db_query("SELECT totalcount FROM {node_counter} WHERE nid=%d", $node->nid));
  $additions["node_counter"] = number_format($node_count);
  return $additions;
}