From 5e19987567e403c834255648f55778b6c2f9872c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 29 Jul 2010 16:27:30 +0000 Subject: [PATCH] Show example of constant to enable Smarty --- dev/skeletons/modMyModule.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php index 2f01cf44e1c..231e1dd7b20 100644 --- a/dev/skeletons/modMyModule.class.php +++ b/dev/skeletons/modMyModule.class.php @@ -95,6 +95,7 @@ class modMyModule extends DolibarrModules // Constants // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',0), // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0) ); + // 2=>array('MAIN_MODULE_MYMODULE_NEEDSMARTY','chaine',1,'Constant to say module need smarty',0) $this->const = array(); // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 0 or 'allentities') // Array to add new pages in new tabs