diff --git a/video_embed_facebook/video_embed_facebook.module b/video_embed_facebook/video_embed_facebook.module index d4c1db8..7f9a7a1 100644 --- a/video_embed_facebook/video_embed_facebook.module +++ b/video_embed_facebook/video_embed_facebook.module @@ -88,15 +88,7 @@ function video_embed_facebook_handle_video($url, $settings) { if ($id) { //our embed code - $embed = ' - - - - - - - '; + $embed=' '; //use format_string to replace our placeholders with the values from the settings $embed = format_string($embed, array( '!id' => $id, @@ -139,7 +131,7 @@ function video_embed_facebook_handle_thumbnail($url) { function _video_embed_facebook_get_video_id($url) { //parse_url is an easy way to break a url into its components $matches = array(); - preg_match('/(.*)?v=([^&#]*)/', $url, $matches); + preg_match('/(.*)?[v|video_id]=([^&#]*)/', $url, $matches); //if the v get parameter is set, return it if ($matches && !empty($matches[2])) { return $matches[2];