. defined('MOODLE_INTERNAL') || die(); function xmldb_hvp_install() { // Try to install all the default content types. require_once(__DIR__ . '/../autoloader.php'); // Fetch info about library updates. $core = \mod_hvp\framework::instance('core'); $core->fetchLibrariesMetadata(); // Check that plugin is set up correctly. $core->checkSetupForRequirements(); // Print any messages. echo '

' . get_string('welcomeheader', 'hvp') . '

' . '

' . get_string('welcomegettingstarted', 'hvp', array( 'moodle_tutorial' => 'href="https://h5p.org/moodle" target="_blank"', 'example_content' => 'href="https://h5p.org/content-types-and-applications" target="_blank"' )) . '

' . '

' . get_string('welcomecommunity', 'hvp', array( 'forums' => 'href="https://h5p.org/forum" target="_blank"' )) . '

' . '

' . get_string('welcomecontactus', 'hvp', 'href="https://h5p.org/contact" target="_blank"') . '

'; // Notify of communication with H5P Hub. // @codingStandardsIgnoreLine echo "

H5P fetches content types directly from the H5P Hub. In order to do this the H5P plugin will communicate with the Hub once a day to fetch information about new and updated content types. It will send in anonymous data to the Hub about H5P usage. Read more at the plugin communication page at H5P.org.

"; \mod_hvp\framework::printMessages('info', \mod_hvp\framework::messages('info')); \mod_hvp\framework::printMessages('error', \mod_hvp\framework::messages('error')); }