From 9cd90da933bb53c95808773ef9698f0eaf478541 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Jan 2011 19:06:53 +0000 Subject: [PATCH] New: Add hidden option SOCIETE_DISABLE_PROSPECTS --- dev/skeletons/modMyModule.class.php | 4 ++-- htdocs/societe/soc.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php index 974195c5e3e..c746240a00b 100644 --- a/dev/skeletons/modMyModule.class.php +++ b/dev/skeletons/modMyModule.class.php @@ -93,9 +93,9 @@ class modMyModule extends DolibarrModules $this->langfiles = array("langfiles@mymodule"); // Constants - // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',0), + // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1), // 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) + // 2=>array('MAIN_MODULE_MYMODULE_NEEDSMARTY','chaine',1,'Constant to say module need smarty',1) $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 diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index eedd848693f..c9653436771 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -685,8 +685,8 @@ else // Prospect/Customer print ''.$langs->trans('ProspectCustomer').''; @@ -1072,8 +1072,8 @@ else // Prospect/Customer print ''.$langs->trans('ProspectCustomer').'';