From 1042bcfb44bf56ccca33f0f0bb7b562ef7587afc Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Tue, 19 Feb 2008 19:10:24 +0000
Subject: [PATCH] Uniformisation modules

---
 htdocs/includes/modules/modAgenda.class.php      |  7 +++----
 htdocs/includes/modules/modDocument.class.php    | 13 ++++++-------
 htdocs/includes/modules/modECM.class.php         |  2 +-
 htdocs/includes/modules/modEditeur.class.php     |  9 ++++-----
 htdocs/includes/modules/modPrelevement.class.php | 12 ++++++------
 htdocs/includes/modules/modWebcalendar.class.php |  5 ++---
 6 files changed, 22 insertions(+), 26 deletions(-)

diff --git a/htdocs/includes/modules/modAgenda.class.php b/htdocs/includes/modules/modAgenda.class.php
index b210c733f18..5da96742981 100644
--- a/htdocs/includes/modules/modAgenda.class.php
+++ b/htdocs/includes/modules/modAgenda.class.php
@@ -18,13 +18,12 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
  */
 
 /**
         \defgroup   agenda     Module agenda
         \brief      Module pour gerer l'agenda et actions
+		\brief		$Id$
 */
 
 /**
@@ -45,13 +44,13 @@ class modAgenda extends DolibarrModules
 
     /**
      *   \brief      Constructeur. Definit les noms, constantes et boites
-     *   \param      DB      handler d'acc�s base
+     *   \param      DB      handler d'acces base
      */
     function modAgenda($DB)
     {
         $this->db = $DB;
         $this->numero = 2400;
-    
+
         $this->family = "projects";
         $this->name = "Agenda";
         $this->description = "Gestion de l'agenda et des actions";
diff --git a/htdocs/includes/modules/modDocument.class.php b/htdocs/includes/modules/modDocument.class.php
index 7394240db79..737a5f0196b 100644
--- a/htdocs/includes/modules/modDocument.class.php
+++ b/htdocs/includes/modules/modDocument.class.php
@@ -14,19 +14,18 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
  */
 
 /**
-   \defgroup   document     Module document
-   \brief      Module pour g�rer le suivi des documents
+   \defgroup   	document     Module de generation de documents
+   \brief      	Module pour gerer des generations de documents
+   \version		$Id$
 */
 
 /**
    \file       htdocs/includes/modules/modDocument.class.php
    \ingroup    document
-   \brief      Fichier de description et activation du module Document
+   \brief      Fichier de description et activation du module Generation document
 */
 
 include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
@@ -49,14 +48,14 @@ class modDocument extends DolibarrModules
     $this->db = $DB ;
     $this->numero = 51 ;
     
-    $this->family = "other";
+    $this->family = "ecm";
     $this->name = "Document";
     $this->description = "Gestion des documents";
     $this->revision = explode(' ','$Revision$');
     $this->version = $this->revision[1];
     $this->const_name = 'MAIN_MODULE_DOCUMENT';
     $this->special = 2;
-    //$this->picto='document';
+    $this->picto='generic';
 
     // Dir
     $this->dirs = array();
diff --git a/htdocs/includes/modules/modECM.class.php b/htdocs/includes/modules/modECM.class.php
index d08a8cb355e..6e5984ced75 100644
--- a/htdocs/includes/modules/modECM.class.php
+++ b/htdocs/includes/modules/modECM.class.php
@@ -71,7 +71,7 @@ class modECM extends DolibarrModules
 		$this->dirs[0] = DOL_DATA_ROOT."/ecm";
 		
 		// Config pages. Put here list of php page names stored in admmin directory used to setup module
-		$this->config_page_url = array("");
+		$this->config_page_url = array();
 		
 		// Dependencies
 		$this->depends = array();		// List of modules id that must be enabled if this module is enabled
diff --git a/htdocs/includes/modules/modEditeur.class.php b/htdocs/includes/modules/modEditeur.class.php
index a08f2b5fe7c..d4af24adcab 100644
--- a/htdocs/includes/modules/modEditeur.class.php
+++ b/htdocs/includes/modules/modEditeur.class.php
@@ -14,13 +14,12 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
  */
 
 /**
-   \defgroup   editeur     Module editeur
-   \brief      Module pour g�rer le suivi des editeurs
+   \defgroup   	editeur     Module editeur
+   \brief      	Module pour gerer le suivi des editeurs
+   \version		$Id$
 */
 
 /**
@@ -56,7 +55,7 @@ class modEditeur extends DolibarrModules
     $this->version = $this->revision[1];
     $this->const_name = 'MAIN_MODULE_EDITEUR';
     $this->special = 3;
-    //$this->picto='editeur';
+    $this->picto='book';
 
     // Dir
     $this->dirs = array();
diff --git a/htdocs/includes/modules/modPrelevement.class.php b/htdocs/includes/modules/modPrelevement.class.php
index 33fd77727ea..b96cf57a171 100644
--- a/htdocs/includes/modules/modPrelevement.class.php
+++ b/htdocs/includes/modules/modPrelevement.class.php
@@ -1,6 +1,6 @@
 <?php
 /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- * Copyright (C) 2005-2007 Laurent Destailleur  <eldy@users.sourceforge.net>
+ * Copyright (C) 2005-2008 Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * 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
@@ -15,13 +15,12 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
  */
 
 /**
-   \defgroup   prelevement     Module prelevement
-   \brief      Module de gestion des pr�l�vements bancaires
+   \defgroup   	prelevement     Module prelevement
+   \brief      	Module de gestion des prelevements bancaires
+   \version		$Id$
 */
 
 /**
@@ -60,7 +59,8 @@ class modPrelevement extends DolibarrModules
 	
 		$this->const_name = 'MAIN_MODULE_PRELEVEMENT';
 		$this->special = 0;
-	
+		// Name of png file (without png) used for this module
+		$this->picto='payment';
 		// Dir
 		$this->dirs = array();
 		$this->data_directory = $conf->prelevement->dir_output . "/bon";
diff --git a/htdocs/includes/modules/modWebcalendar.class.php b/htdocs/includes/modules/modWebcalendar.class.php
index 1583456c502..1e90db37146 100644
--- a/htdocs/includes/modules/modWebcalendar.class.php
+++ b/htdocs/includes/modules/modWebcalendar.class.php
@@ -15,13 +15,12 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
  */
 
 /**     \defgroup   webcalendar     Module Webcalendar
         \brief      Module to include Webcalendar GUI into Dolibarr menu and
                     add Dolibarr events directly inside a Webcalendar database.
+		\version	$Id$
 */
 
 /**
@@ -58,7 +57,7 @@ class modWebcalendar extends DolibarrModules
 		// Module title used if translation string 'ModuleXXXName' not found (XXX is id value)
 		$this->name = "Webcalendar";	
 		// Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value)
-		$this->description = "Interfa�age avec le calendrier Webcalendar";
+		$this->description = "Interfacage avec le calendrier Webcalendar";
 		// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
 		$this->version = 'dolibarr';    
 		// Key used in llx_const table to save module status enabled/disabled (XXX is id value)
-- 
GitLab