You are here

public function SocialGoogleFormatter::getData in Open Social 7

File

includes/social_comments.google.inc, line 21
Google class

Class

SocialGoogleFormatter
@file Google class

Code

public function getData($url, $count) {
  $this->max_items = $count;
  $activity_id = $this
    ->getActivityId($url);
  $comments = $activity_id ? $this
    ->getComments($activity_id) : FALSE;
  $output = $comments ? $this
    ->renderComments($comments) : array();
  return $output;
}