[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / statistiques / stats_ieconfig.php
index 1d9d8b5..2dcd767 100644 (file)
@@ -1,13 +1,31 @@
-<?php\r
-\r
-if (!defined("_ECRIRE_INC_VERSION")) return;\r
-\r
-function stats_ieconfig_metas($table){\r
-       $table['statistiques']['titre'] = _T('statistiques:info_forum_statistiques');\r
-       $table['statistiques']['icone'] = 'statistique-16.png';\r
-       $table['statistiques']['metas_brutes'] = 'activer_statistiques,activer_captures_referers';\r
-       \r
-       return $table;\r
-}\r
-\r
-?>
\ No newline at end of file
+<?php
+
+/**
+ * Déclarations des configurations qui peuvent être sauvegardées
+ *
+ * @plugin Statistiques pour SPIP
+ * @license GNU/GPL
+ * @package SPIP\Stats\Pipelines
+ **/
+
+if (!defined("_ECRIRE_INC_VERSION")) {
+       return;
+}
+
+/**
+ * Ajoute les metas sauvegardables de Statistiques pour le plugin IEConfig
+ *
+ * @pipeline ieconfig_metas
+ *
+ * @param array $table
+ *     Déclaration des sauvegardes
+ * @return array
+ *     Déclaration des sauvegardes complétées
+ **/
+function stats_ieconfig_metas($table) {
+       $table['statistiques']['titre'] = _T('statistiques:info_forum_statistiques');
+       $table['statistiques']['icone'] = 'statistique-16.png';
+       $table['statistiques']['metas_brutes'] = 'activer_statistiques,activer_captures_referers';
+
+       return $table;
+}