function add_shortcode($tag, $func)
{
    return elgg_add_shortcode($tag, $func);
}
    } else {
        if ($site == "vimeo") {
            $src = 'http://player.vimeo.com/video/' . $id;
        } else {
            if ($site == "dailymotion") {
                $src = 'http://www.dailymotion.com/embed/video/' . $id;
            } else {
                if ($site == "yahoo") {
                    $src = 'http://d.yimg.com/nl/vyc/site/player.html#vid=' . $id;
                } else {
                    if ($site == "bliptv") {
                        $src = 'http://a.blip.tv/scripts/shoggplayer.html#file=http://blip.tv/rss/flash/' . $id;
                    } else {
                        if ($site == "veoh") {
                            $src = 'http://www.veoh.com/static/swf/veoh/SPL.swf?videoAutoPlay=0&permalinkId=' . $id;
                        } else {
                            if ($site == "viddler") {
                                $src = 'http://www.viddler.com/simple/' . $id;
                            }
                        }
                    }
                }
            }
        }
    }
    if ($id != '') {
        return '<iframe width="' . $w . '" height="' . $h . '" src="' . $src . '" class="vid iframe-' . $site . '"></iframe>';
    }
}
elgg_add_shortcode('video', 'video_sc');