add_hook($host::HOOK_ARTICLE_FILTER, $this); } function hook_article_filter($article) { if(strpos($article["link"], "youtube.com") !== FALSE) { $video_id = str_replace('https://www.youtube.com/watch?v=', '', $article["link"]); $article["content"] = ''.$article['; } return $article; } function api_version() { return 2; } }