You are here

function feedapi_stat_nodeapi in FeedAPI 6

Implementation of hook_nodeapi().

File

feedapi_stat/feedapi_stat.module, line 11
Visualize standard FeedAPI statistics logs.

Code

function feedapi_stat_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
  if ($op == 'view' && user_access('administer feedapi') && feedapi_enabled_type($node->type)) {
    $node->content['feedapi_stat']['#value'] = theme('feedapi_stat', feedapi_stat_get($node));
  }
}