| Current Path : /home/etiennec/www/oldsite/plugins/auto/cfg/cfg/classes/ |
| Current File : /home/etiennec/www/oldsite/plugins/auto/cfg/cfg/classes/type_id.php |
<?php
/**
* Plugin générique de configuration pour SPIP
*
* @license GNU/GPL
* @package plugins
* @subpackage cfg
* @category outils
* @copyright (c) toggg, marcimat 2007-2008
* @link http://www.spip-contrib.net/
* @version $Id: type_id.php 36735 2010-03-28 21:25:09Z gilles.vincent@gmail.com $
*/
if (!defined("_ECRIRE_INC_VERSION")) return;
/**
*
* @param string $champ
* @param Object $cfg
* @return string
*/
function cfg_verifier_type_id($champ, &$cfg){
if (!preg_match('#^[a-z_]\w*$#', $cfg->val[$champ])){
$cfg->ajouter_erreur(_T('cfg:erreur_type_id', array('champ'=>$champ)));
}
return true;
}
?>