Last change
on this file was
152,
checked in by guille, 15 years ago
|
se agregaron svn_update y cfg para el 2.0
|
File size:
511 bytes
|
Rev | Line | |
---|
[152] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * Plugin CFG pour SPIP |
---|
| 4 | * (c) toggg, marcimat 2007-2008, distribue sous licence GNU/GPL |
---|
| 5 | * Documentation et contact: http://www.spip-contrib.net/ |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
| 9 | |
---|
| 10 | function cfg_verifier_type_idnum($champ, &$cfg){ |
---|
| 11 | if (!is_numeric($cfg->val[$champ])){ |
---|
| 12 | $cfg->ajouter_erreur(_T('cfg:erreur_type_idnum', array('champ'=>$champ))); |
---|
| 13 | } |
---|
| 14 | return true; |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | function cfg_pre_traiter_type_idnum($champ, &$cfg){ |
---|
| 18 | $cfg->val[$champ] = intval($cfg->val[$champ]); |
---|
| 19 | return true; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.