[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / mots / mots_ieconfig.php
index 3c73ff8..5692e34 100644 (file)
@@ -1,13 +1,28 @@
-<?php\r
-\r
-if (!defined("_ECRIRE_INC_VERSION")) return;\r
-\r
-function mots_ieconfig_metas($table){\r
-       $table['mots']['titre'] = _T('mots:info_mots_cles');\r
-       $table['mots']['icone'] = 'mot-16.png';\r
-       $table['mots']['metas_brutes'] = 'articles_mots,config_precise_groupes,mots_cles_forums';\r
-       \r
-       return $table;\r
-}\r
-\r
-?>
\ No newline at end of file
+<?php
+
+/**
+ * Déclarations des configurations qui peuvent être sauvegardées
+ *
+ * @package SPIP\Mots\Pipelines
+ **/
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
+
+/**
+ * Ajoute les metas sauvegardables de Mots pour le plugin IEConfig
+ *
+ * @pipeline ieconfig_metas
+ *
+ * @param array $table
+ *     Déclaration des sauvegardes
+ * @return array
+ *     Déclaration des sauvegardes complétées
+ **/
+function mots_ieconfig_metas($table) {
+       $table['mots']['titre'] = _T('mots:info_mots_cles');
+       $table['mots']['icone'] = 'mot-16.png';
+       $table['mots']['metas_brutes'] = 'articles_mots,config_precise_groupes,mots_cles_forums';
+
+       return $table;
+}