General developer forum

newmodule lib.php

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of sali sawsan
newmodule lib.php

I'm going to implement a plugin,, and have a few questions to the lib.php file.
In the important functions are listed. However, I need more exact information to the single functions:
e.g., which parametres should a function have, how does its result look (e.g., an Array or object?) and what makes it exactly? which functions are mandatory?
where can I get more exact information?

Average of ratings: -
Anne Krijger
Re: newmodule lib.php

The best way is to take an existing module whose behavior is similar to what you are creating as an example.

For example if you're creating a new sort of resource you can look at the /mod/resource code to see how it's done there.


Average of ratings: -