Comment 4 for bug 1328768

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Okay, I pushed a patch that creates the "module" plugintype. It turns out that to create a basic plugintype, all you have to do is:

1. Alter the plugin_types() method in mahara.php
2. Create the directory and the lib.php file, with a Plugin subclass.
3. For it to handle dwoo templates you also need to create a Dwoo_Mahara_Template subclass.

... well actually you don't need to do #3 anymore, because of some refactoring of the Dwoo_Mahara_Template class which I pushed for Bug 1231755.

While I was it I did some cleanup of the base Plugin class as well, which is why there are two patches.