You are here

function hook_oembedprovider_formats_alter in oEmbed 7

Same name and namespace in other branches
  1. 8 oembed.api.php \hook_oembedprovider_formats_alter()
  2. 7.0 oembed.api.php \hook_oembedprovider_formats_alter()

Modify the provider's set of supported oEmbed response formats.

Parameters

array $formats: Format handlers keyed by format name.

1 invocation of hook_oembedprovider_formats_alter()
oembedprovider_formats in modules/oembedprovider/oembedprovider.inc
Returns all the registered response formats

File

./oembed.api.php, line 39
Hooks provided by the oEmbed module.

Code

function hook_oembedprovider_formats_alter(&$formats) {
  $formats['jsonp'] = array(
    'mime' => 'text/javascript',
    'callback' => '_oembedprovider_formats_jsonp',
  );
}