function hook_oembed_request_alter in oEmbed 8
Same name and namespace in other branches
- 7 oembed.api.php \hook_oembed_request_alter()
- 7.0 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.
File
- ./
oembed.api.php, line 18 - Hooks provided by the oEmbed module.
Code
function hook_oembed_request_alter(&$parameters, &$provider, $url) {
if ($provider['name'] == 'default:youtube') {
$parameters['iframe'] = '1';
}
}