. /** * This file replaces the legacy STATEMENTS section in db/install.xml, * lib.php/modulename_install() post installation hook and partially defaults.php * * @package workshopform * @subpackage rubric * @copyright 2010 David Mudrak * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Post installation procedure */ function xmldb_workshopform_rubric_install() { global $CFG, $DB; require_once(dirname(__FILE__) . '/upgradelib.php'); // upgrade from old workshop 1.x if needed workshopform_rubric_upgrade_legacy(); } /** * Post installation procedure recovery */ function xmldb_workshopform_rubric_install_recovery() { global $CFG, $DB; require_once(dirname(__FILE__) . '/upgradelib.php'); // continue upgrading from old workshop 1.x if needed workshopform_rubric_upgrade_legacy(); }