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

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.

主站蜘蛛池模板: 永胜县| 明光市| 铜梁县| 将乐县| 平远县| 潮安县| 崇左市| 濮阳市| 禄劝| 长治市| 清苑县| 安塞县| 铜川市| 青海省| 镇坪县| 礼泉县| 沅江市| 灯塔市| 台南县| 绿春县| 珠海市| 桐城市| 萨嘎县| 石屏县| 乌兰浩特市| 黔西| 卓尼县| 栾川县| 朔州市| 安陆市| 西吉县| 依兰县| 潮州市| 雷州市| 贵阳市| 琼中| 锡林浩特市| 文昌市| 墨竹工卡县| 太谷县| 贵溪市|