[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / forum / forum_ieconfig.php
index 8f0dd97..5973a6b 100644 (file)
@@ -1,23 +1,38 @@
-<?php\r
-\r
-if (!defined("_ECRIRE_INC_VERSION")) return;\r
-\r
-// On déclare ici la config du core\r
-function forum_ieconfig_metas($table){\r
-       $table['forums_contenu']['titre'] = _T('forum:titre_forum');\r
-       $table['forums_contenu']['icone'] = 'forum-public-16.png';\r
-       $table['forums_contenu']['metas_brutes'] = 'forums_titre,forums_texte,forums_urlref,forums_afficher_barre,formats_documents_forum';\r
-       $table['forums_notifications']['titre'] = _T('forum:info_envoi_forum');\r
-       $table['forums_notifications']['icone'] = 'annonce-16.png';\r
-       $table['forums_notifications']['metas_brutes'] = 'prevenir_auteurs';\r
-       $table['forums_participants']['titre'] = _T('forum:info_mode_fonctionnement_defaut_forum_public');\r
-       $table['forums_participants']['icone'] = 'forum-interne-16.png';\r
-       $table['forums_participants']['metas_brutes'] = 'forums_publics';\r
-       $table['forums_prives']['titre'] = _T('forum:titre_config_forums_prive');\r
-       $table['forums_prives']['icone'] = 'forum-interne-16.png';\r
-       $table['forums_prives']['metas_brutes'] = 'forum_prive_objets,forum_prive,forum_prive_admin';\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\Forum\Pipelines
+ **/
+
+if (!defined("_ECRIRE_INC_VERSION")) {
+       return;
+}
+
+/**
+ * Ajoute les metas sauvegardables de Forum pour le plugin IEConfig
+ *
+ * @pipeline ieconfig_metas
+ *
+ * @param array $table
+ *     Déclaration des sauvegardes
+ * @return array
+ *     Déclaration des sauvegardes complétées
+ **/
+function forum_ieconfig_metas($table) {
+       $table['forums_contenu']['titre'] = _T('forum:titre_forum');
+       $table['forums_contenu']['icone'] = 'forum-public-16.png';
+       $table['forums_contenu']['metas_brutes'] = 'forums_titre,forums_texte,forums_urlref,forums_afficher_barre,formats_documents_forum';
+       $table['forums_notifications']['titre'] = _T('forum:info_envoi_forum');
+       $table['forums_notifications']['icone'] = 'annonce-16.png';
+       $table['forums_notifications']['metas_brutes'] = 'prevenir_auteurs';
+       $table['forums_participants']['titre'] = _T('forum:info_mode_fonctionnement_defaut_forum_public');
+       $table['forums_participants']['icone'] = 'forum-interne-16.png';
+       $table['forums_participants']['metas_brutes'] = 'forums_publics';
+       $table['forums_prives']['titre'] = _T('forum:titre_config_forums_prive');
+       $table['forums_prives']['icone'] = 'forum-interne-16.png';
+       $table['forums_prives']['metas_brutes'] = 'forum_prive_objets,forum_prive,forum_prive_admin';
+
+       return $table;
+}