public static function getDailymotionEmbedUrl( $videoUrl )
    {
        $embedLink = '';
        $embedINI = eZINI::instance( 'embedtag.ini' );

        preg_match( self::DAILYMOTION_VIDEOID_REGEXP, $videoUrl, $matches );
        if ( isset( $matches['videoId'] ) )
        {
            $embedLink = str_replace( '$$$VIDEO$$$', $matches['videoId'], $embedINI->variable( 'DailymotionSettings', 'EmbedLinkPattern' ) );
        }

        return array( 'result' => $embedLink );
    }
public static function getDailymotionEmbedUrl( $videoUrl )
    {
        $embedLink = '';
        $embedINI = eZINI::instance( 'embedtag.ini' );

        preg_match( self::DAILYMOTION_VIDEOID_REGEXP, $videoUrl, $matches );
        if ( isset( $matches['videoId'] ) )
        {
            $embedLink = str_replace( '$$$VIDEO$$$', $matches['videoId'], $embedINI->variable( 'DailymotionSettings', 'EmbedLinkPattern' ) );
        }

        return array( 'result' => $embedLink );
    }
public static function getDailymotionEmbedUrl ( $ videoUrl ) { $ embedLink = '' ; $ embedINI = eZINI :: instance ( 'embedtag.ini' ) ; preg_match ( self :: DAILYMOTION_VIDEOID_REGEXP , $ videoUrl , $ matches ) ; if ( isset ( $ matches [ 'videoId' ] ) ) { $ embedLink = str_replace ( '$$$VIDEO$$$' , $ matches [ 'videoId' ] , $ embedINI -> variable ( 'DailymotionSettings' , 'EmbedLinkPattern' ) ) ; } return array ( 'result' => $ embedLink ) ; }
Returns embed URL for a DailyMotion video, from its link
@param string $videoUrl Video URL on DailyMotion website
Returns embed URL for a DailyMotion video from its link