. /** * Filter for component 'filter_oembed' * * @package filter_oembed * @copyright 2012 Matthew Cannings; modified 2015 by Microsoft, Inc. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * code based on the following filters... * Screencast (Mark Schall) * Soundcloud (Troy Williams) */ defined('MOODLE_INTERNAL') || die(); use filter_oembed\service\oembed; /** * Installs the OEmbed filter. */ function xmldb_filter_oembed_install() { filter_set_global_state('filter/oembed', TEXTFILTER_ON); // Insert the initial data elements from the instance's providers. oembed::update_provider_data(); }