From ab9c22f5f3c2e06d6dbd43fd5a46ec7ff1bffe75 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 23 Feb 2012 15:57:36 +0100 Subject: [PATCH] New: add generic module parts --- dev/skeletons/modMyModule.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php index 2aa38ae6706..41120bfe5e1 100644 --- a/dev/skeletons/modMyModule.class.php +++ b/dev/skeletons/modMyModule.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2004-2012 Laurent Destailleur - * Copyright (C) 2005-2010 Regis Houssin + * Copyright (C) 2005-2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,8 +68,12 @@ class modMyModule extends DolibarrModules // If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module' $this->picto='generic'; - // Defined if the directory /mymodule/core/triggers/ contains triggers or not - $this->triggers = 0; + // Defined all module parts (triggers, login, substitutions, menus, etc...) (0=disable,1=enable) + $this->module_parts = array(); + //$this->module_parts = array('triggers' => 1, + // 'login' => 0, + // 'substitutions' => 0, + // 'menus' => 0); // Data directories to create when module is enabled. // Example: this->dirs = array("/mymodule/temp");