This commit is contained in:
Laurent Destailleur
2011-08-31 10:41:06 +00:00
parent 14c5efdfa4
commit 8b772eef30
5 changed files with 68 additions and 28 deletions

View File

@@ -232,9 +232,10 @@ class modMyModule extends DolibarrModules
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
* It also creates data directories
*
* @return int 1 if OK, 0 if KO
* @param string $options Options when enabling module ('', 'noboxes')
* @return int 1 if OK, 0 if KO
*/
function init()
function init($options='')
{
$sql = array();
@@ -248,9 +249,10 @@ class modMyModule extends DolibarrModules
* Remove from database constants, boxes and permissions from Dolibarr database.
* Data directories are not deleted
*
* @return int 1 if OK, 0 if KO
* @param string $options Options when enabling module ('', 'noboxes')
* @return int 1 if OK, 0 if KO
*/
function remove()
function remove($options='')
{
$sql = array();