You are here

function mediafront_statistics_service in MediaFront 6

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

Implementation of hook_service()

File

plugins/mediafront_statistics/mediafront_statistics.module, line 5

Code

function mediafront_statistics_service() {
  return array(
    array(
      '#method' => 'mediafront.incrementNodeCounter',
      '#callback' => 'mediafront_statistics_increment_node_counter',
      '#args' => array(
        array(
          '#name' => 'nid',
          '#type' => 'int',
          '#description' => t('The node to increment the counter for.'),
        ),
      ),
      '#return' => 'int',
      '#help' => t('Increments the node counter for any given node.'),
    ),
  );
}