You are here

protected static function DefaultController::dc_curl_get_contents in jQuery social stream 8.2

1 call to DefaultController::dc_curl_get_contents()
DefaultController::jquery_social_stream_facebook_callback in src/Controller/DefaultController.php
Facebook callback for social stream.

File

src/Controller/DefaultController.php, line 190
Contains \Drupal\jquery_social_stream\Controller\DefaultController.

Class

DefaultController
Default controller for the jquery_social_stream module.

Namespace

Drupal\jquery_social_stream\Controller

Code

protected static function dc_curl_get_contents($url) {
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_URL, $url);
  $data = curl_exec($ch);
  curl_close($ch);
  return $data;
}