From: defacer Date: Tue, 1 Feb 2005 09:19:31 +0000 (+0000) Subject: Updated to cover the latest API addition and made some minor corrections. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e7c66b15840c5701a3f23cc7c8db2e0f78a60f6c;p=moodle.git Updated to cover the latest API addition and made some minor corrections. --- diff --git a/blocks/HOWTO.html b/blocks/HOWTO.html index 640c5210bd..6482e46ba8 100644 --- a/blocks/HOWTO.html +++ b/blocks/HOWTO.html @@ -816,6 +816,8 @@ function instance_config_save($data) {

Note that $data does not hold all of the submitted POST data because Moodle adds some hidden fields to the form in order to be able to process it. However, before calling this method it strips the hidden fields from the received data and so when this method is called only the "real" configuration data remain.

+

If you want to update the stored copy of the configuration data at run time (for example to persist some changes you made programmatically), you should not use this method. The correct procedure for that purpose is to call instance_config_commit.

+

You should return a boolean value denoting the success or failure of your method's actions.

@@ -876,6 +878,17 @@ function specialization() {