From d89a877a00ec43383283a542a5860214d469fd30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Thu, 8 Sep 2016 16:58:01 +0200 Subject: [PATCH] Added the new familyinfo property from 4.0.0 --- htdocs/core/modules/DolibarrModules.class.php | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index 4ebbe916657..6d6856ff36b 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -58,9 +58,28 @@ class DolibarrModules // Can not be abstract, because we need to insta public $editor_url; /** - * @var 'crm'|'financial'|'hr'|'projects'|'products'|'ecm'|'technic'|'other' Family + * @var string Family + * @see familyinfo + * + * Native values: 'crm', 'financial', 'hr', 'projects', 'products', 'ecm', 'technic', 'other'. + * Use familyinfo to declare a custom value. */ public $family; + + /** + * @var array Custom family informations + * @see family + * + * e.g.: + * array( + * 'myownfamily' => array( + * 'position' => '001', + * 'label' => $langs->trans("MyOwnFamily") + * ) + * ); + * + */ + public $familyinfo; /** * @var int Module position @@ -245,6 +264,9 @@ class DolibarrModules // Can not be abstract, because we need to insta /** * @var 0|1|2|3 Where to display the module in setup page + * @deprecated @since 4.0.0 + * @see family + * @see familyinfo * * 0: common * 1: interface