function hook_magnific_popup_iframe_patterns in Magnific Popup 7
Define supported File Entity URI schemes that get special iframe parameters.
1 function implements hook_magnific_popup_iframe_patterns()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_magnific_popup_iframe_patterns()
- _magnific_popup_add_api_js in ./
magnific_popup.module - Internal utility function to add one-time JS settings from extension modules.
File
- ./
magnific_popup.api.php, line 25 - magnific_popup/magnific_popup.api.php
Code
function hook_magnific_popup_iframe_patterns() {
$iframe_patterns = array(
'youtube' => array(
'index' => 'youtube.com/',
'id' => 'v=',
'src' => '//www.youtube.com/embed/%id%?rel=0&modestbranding=1&playerapiid=mfp-iframe&controls=2&autoplay=1',
),
);
return $iframe_patterns;
}