You are here

function _oembedprovider_formats_jsonp in oEmbed 6.0

Same name and namespace in other branches
  1. 8 modules/oembedprovider/oembedprovider.inc \_oembedprovider_formats_jsonp()
  2. 7 modules/oembedprovider/oembedprovider.inc \_oembedprovider_formats_jsonp()
  3. 7.0 oembedprovider/oembedprovider.inc \_oembedprovider_formats_jsonp()

JSONP formatter

1 string reference to '_oembedprovider_formats_jsonp'
oembedprovider_oembedprovider_formats_alter in ./oembedprovider.module
Implementation of hook_oembedprovider_formats_alter().

File

./oembedprovider.inc, line 129
Functions for the oEmbed provider

Code

function _oembedprovider_formats_jsonp($data) {
  $callback = !empty($_GET['callback']) ? $_GET['callback'] : 'jsonp';
  return sprintf('%s(%s)', $callback, _oembedprovider_formats_json($data));
}