X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins%2Fauto%2Fcfg%2Fcontroleurs%2Fconfig.php;fp=www%2Fplugins%2Fauto%2Fcfg%2Fcontroleurs%2Fconfig.php;h=a1ea34324942c1aabe0ec9f9c61f9e6ff8398a51;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/plugins/auto/cfg/controleurs/config.php b/www/plugins/auto/cfg/controleurs/config.php new file mode 100644 index 0000000..a1ea343 --- /dev/null +++ b/www/plugins/auto/cfg/controleurs/config.php @@ -0,0 +1,52 @@ + $val); + $n = new Crayon($crayon, $valeur); + + $contexte = array(); + if (is_string($val) and preg_match(",[\n\r],", $val)) + $contexte['config'] = array('type'=>'texte'); + else + $contexte['config'] = array('type'=>'ligne'); + + $html = $n->formulaire($contexte); + include_spip('action/crayon_html'); + $html = crayons_formulaire($html, 'crayons_config_store'); + $status = NULL; + + return array($html, $status); + +} + + +?>