Module development: Difference between revisions

Jump to navigation Jump to search
Line 30: Line 30:
Then change the contents of this file as follows:
Then change the contents of this file as follows:
* Replace all "modMyModule" with a value which corresponds to the purpose of your module. This value must always start with 'mod' and contains only alpha characters.
* Replace all "modMyModule" with a value which corresponds to the purpose of your module. This value must always start with 'mod' and contains only alpha characters.
* Change the number in: $this->numero = 10000 by a number to designate module id, the id number must not have been used already (Go to '''Home page -> System Information -> Dolibarr -> Modules''' to know the numbers already used as id number for existing modules).
* Change the number in: $this->numero = 10000 by a number that designate your module id. To avoid conflicts with other modules, you can consult tha page that list already reserved id numbers: [[List of modules id|List of modules id]].
* Modify any other variables defined in the constructor (see comment in the code skeleton for their meaning).  
* Modify any other variables defined in the constructor (see comment in the code skeleton for their meaning).  
Your file descriptor for your module is ready.
Your file descriptor for your module is ready.

Navigation menu