From d31a70f48baf684f4b7e8cb9f9a967f91e8b2d24 Mon Sep 17 00:00:00 2001 From: "cedric@yterium.com" <> Date: Thu, 13 Jan 2011 17:55:15 +0000 Subject: [PATCH] Eviter un fichier options en declarant le pipeline dans plugin.xml --- .gitattributes | 2 +- plugin.xml | 5 ++++- verifier_options.php | 5 ----- verifier_pipelines.php | 5 +++++ 4 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 verifier_options.php create mode 100644 verifier_pipelines.php diff --git a/.gitattributes b/.gitattributes index 91afdcd..77360fe 100644 --- a/.gitattributes +++ b/.gitattributes @@ -30,4 +30,4 @@ verifier/telephone.php -text verifier/telephone.yaml -text verifier/url.php -text verifier/url.yaml -text -/verifier_options.php -text +/verifier_pipelines.php -text diff --git a/plugin.xml b/plugin.xml index 2ad1d6c..c3f511c 100644 --- a/plugin.xml +++ b/plugin.xml @@ -17,7 +17,10 @@ </multi> </description> <prefix>verifier</prefix> - <options>verifier_options.php</options> + <pipeline> + <nom>verifier</nom> + <inclure>verifier_pipelines.php</inclure> + </pipeline> <necessite id="SPIP" version="[2.0.10;]" /> <utilise id="yaml" /> <categorie>outil</categorie> diff --git a/verifier_options.php b/verifier_options.php deleted file mode 100644 index efc8ce3..0000000 --- a/verifier_options.php +++ /dev/null @@ -1,5 +0,0 @@ -<?php - -$GLOBALS['spip_pipeline']['verifier'] = ''; - -?> \ No newline at end of file diff --git a/verifier_pipelines.php b/verifier_pipelines.php new file mode 100644 index 0000000..4f2b545 --- /dev/null +++ b/verifier_pipelines.php @@ -0,0 +1,5 @@ +<?php + +function verifier_verifier($flux){return $flux;} + +?> \ No newline at end of file -- GitLab