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
(→‎Obsolete functions: new section)
No edit summary
Line 5: Line 5:


Greg J Preece
Greg J Preece
Note added: 2nd Dec 2011
Just to let you guys know that I haven't forgotten this. The extensions to the tutorial are half-written on my HDD. I've just been busy, you know how it goes. Insert lame excuse here. I'll get this online ASAP.


_______________________
_______________________

Revision as of 10:55, 2 December 2011

Moodle 2.0


Update, 19th October 2011 Have found tree blocks. I must have been looking at the wrong source, or blind, or working off my own code too much, because they're right where they should have been all along. Will add these to the tutorial very soon - working on the write-up now.

Greg J Preece

Note added: 2nd Dec 2011 Just to let you guys know that I haven't forgotten this. The extensions to the tutorial are half-written on my HDD. I've just been busy, you know how it goes. Insert lame excuse here. I'll get this online ASAP.


_______________________

In the blocks I have looked at, there is no closing php tag - ie the ?> is not included. In this tutorial it is.


By Jove, he's right! The lack of closing tags is, I believe, a trick to prevent problems with newline characters appearing after the closing tag. PHP has no real problem with the last tag not existing, so it's left out to be safe. I will add this to the tutorial when I get chance. Thanks for pointing it out.

Greg J Preece


Hi Greg

That was quick! Looking through the forums it seems I'm embarking on a journey - trying to get my head around Moodle Development - that you started 5 years ago. Documentation is severely behind version 2.1, any tips? Also do you know of any developer courses? I haven't had any luck with Moodle partners here in Oz.

Thanks Richard Jones


Hi Richard

As it was a more personal post rather than anything related directly to Blocks, I've left a response over on talk. Cheers.

Greg J Preece

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.