Skip to content
Snippets Groups Projects
Commit e0275285 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Clean module builder

parent 543630e4
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ class modMyModule extends DolibarrModules
// Id for module (must be unique).
// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
$this->numero = 500000; // TODO Go on page http://wiki.dolibarr.org/index.php/List_of_modules_id to reserve id number for your module
$this->numero = 500000; // TODO Go on page https://wiki.dolibarr.org/index.php/List_of_modules_id to reserve id number for your module
// Key text used to identify module (for permissions, menus, etc...)
$this->rights_class = 'mymodule';
......@@ -62,11 +62,13 @@ class modMyModule extends DolibarrModules
// Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
//$this->familyinfo = array('myownfamily' => array('position' => '001', 'label' => $langs->trans("MyOwnFamily")));
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
// Module label (no space allowed), used if translation string 'ModuleMyModuleName' not found (MyModue is name of module).
$this->name = preg_replace('/^mod/i','',get_class($this));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
// Module description, used if translation string 'ModuleMyModuleDesc' not found (MyModue is name of module).
$this->description = "MyModuleDescription";
// Used only if file README.md and README-LL.md not found.
$this->descriptionlong = "MyModuleDescription (Long)";
$this->editor_name = 'Editor name';
$this->editor_url = 'https://www.example.com';
......
......@@ -17,11 +17,9 @@
*/
/**
* \file css/mycss.css.php
* \file htdocs/modulebuilder/template/css/mycss.css.php
* \ingroup mymodule
* \brief Example CSS.
*
* Put detailed description here.
* \brief CSS file for module MyModule.
*/
header('Content-Type: text/css');
......@@ -19,9 +19,7 @@
/**
* \file htdocs/modulebuilder/template/js/mymodule.js.php
* \ingroup mymodule
* \brief Example JavaScript.
*
* Put detailed description here.
* \brief JavaScript file for module MyModule.
*/
header('Content-Type: application/javascript');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment