Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Blocks: Difference between revisions

From MoodleDocs
(Updating discussion page to reflect today's fixes on the main page.)
m (Should read my previews properly in future)
Line 3: Line 3:
= Update, 23rd December 2011 =
= Update, 23rd December 2011 =


So I tried implementing a tree block to prove my code, and there's a slight issue. The block_tree code that was submitted by Alan references a tree_item abstract class and descendants, and the renderer code expects this class in order to function correctly. Problem is, none of these classes are anywhere to be found in the Moodle 2.x code base, and believe me, I looked. Turns out this is already on the tracker @ [[http://tracker.moodle.org/browse/MDL-28289 | MDL-28289]]. I am noting this in the tutorial, and if this issue is resolved, I will update the documentation accordingly.
So I tried implementing a tree block to prove my code, and there's a slight issue. The block_tree code that was submitted by Alan references a tree_item abstract class and descendants, and the renderer code expects this class in order to function correctly. Problem is, none of these classes are anywhere to be found in the Moodle 2.x code base, and believe me, I looked. Turns out this is already on the tracker as [http://tracker.moodle.org/browse/MDL-28289 #28289]. I am noting this in the tutorial, and if this issue is resolved, I will update the documentation accordingly.


PHP closing tags have been removed from the tutorial as discussed previously.
PHP closing tags have been removed from the tutorial as discussed previously.

Revision as of 14:39, 23 December 2011

Moodle 2.0


Update, 23rd December 2011

So I tried implementing a tree block to prove my code, and there's a slight issue. The block_tree code that was submitted by Alan references a tree_item abstract class and descendants, and the renderer code expects this class in order to function correctly. Problem is, none of these classes are anywhere to be found in the Moodle 2.x code base, and believe me, I looked. Turns out this is already on the tracker as #28289. I am noting this in the tutorial, and if this issue is resolved, I will update the documentation accordingly.

PHP closing tags have been removed from the tutorial as discussed previously.


Obsolete functions

It looks like "allow_instance_config" and "instance_config_print" are both completely obsolete functions now that do nothing in Moodle 2. If this is true (can someone confirm?), we should change this document to reflect the instance configuration requirements. All that is required now is the presence of a "edit_form.php" script, as far as I can tell. Setting these functions to false does not stop an instance configuration from happening.

-- Thanks, Mike. I will investigate this and update the docs accordingly - Greg J Preece