Changes

Jump to navigation Jump to search
Line 334: Line 334:  
=== Create your page to edit parameters ===
 
=== Create your page to edit parameters ===
 
If your module needs several parameters to be setup, you must create a page to edit options (these options will be saved in the [[Table llx_const|table '''llx_const''']]).
 
If your module needs several parameters to be setup, you must create a page to edit options (these options will be saved in the [[Table llx_const|table '''llx_const''']]).
Create a page named '''mymodule_setuppage.php''' that shows a form for possible options to update them into the above mentioned table.
+
Create a page named '''mymodule_setuppage.php''' that shows a form for possible options to update them into the above-mentioned table.
 
It is necessary to take an example from a page of the directory '''/admin''' that will show you the way to read/save your parameters.
 
It is necessary to take an example from a page of the directory '''/admin''' that will show you the way to read/save your parameters.
 
Put this PHP page into the directory '''/admin''' of your module (e.g. mymodule/admin/mymodule_setuppage.php).
 
Put this PHP page into the directory '''/admin''' of your module (e.g. mymodule/admin/mymodule_setuppage.php).
15

edits

Navigation menu