官术网_书友最值得收藏!

Making version.php

This file works exactly as we have discussed in prior chapters. It is used to manage database upgrades and enforce required versions of Moodle. This file takes on greater importance for activity modules because they are more data intensive than earlier modules. In the code sample below, we define the current version of the module and the version of Moodle required to run the module:

$module->version = 2009060103;
$module->requires = 2007101509;
$module->cron = 0;

In our next section, we will cover how to add a custom icon to the module.

主站蜘蛛池模板: 扬州市| 屯门区| 筠连县| 嫩江县| 永新县| 韶关市| 河曲县| 兰溪市| 长阳| 安龙县| 共和县| 启东市| 改则县| 南澳县| 武夷山市| 涪陵区| 阳信县| 邛崃市| 麻栗坡县| 营山县| 营口市| SHOW| 易门县| 枞阳县| 红桥区| 贺兰县| 崇阳县| 沁源县| 新和县| 衢州市| 天气| 军事| 四平市| 云霄县| 鄂托克旗| 乌兰浩特市| 莱西市| 师宗县| 奇台县| 潼南县| 始兴县|