You are here

function hook_oembed_request_alter in oEmbed 7.0

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

Alters an oEmbed request parameters and provider.

Parameters

array $parameters: oEmbed request parameters.

object $provider: oEmbed provider info.

string $url: The original URL or embed code to parse.

1 invocation of hook_oembed_request_alter()
oembed_oembed_fetch in ./oembed.module
oEmbed fetcher and parser.

File

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

Code

function hook_oembed_request_alter(&$parameters, &$provider, $url) {
  if ($provider['name'] == 'youtube') {
    $parameters['iframe'] = '1';
  }
}