File "compagnon_fonctions.php"
Full path: /home/argothem/www/v4_old/plugins-dist/compagnon/compagnon_fonctions.php
File size: 536 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Fonctions pour les squelettes
*
* @package SPIP\Compagnon\Fonctions
**/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Retourne un court texte de compréhension
* aléatoirement parmi une liste.
*
* @example
* [(#VAL|ok_aleatoire)]
*
* @return string
* Le texte traduit.
**/
function filtre_ok_aleatoire_dist() {
$alea = [
'compagnon:ok',
'compagnon:ok_jai_compris',
'compagnon:ok_bien',
'compagnon:ok_merci',
'compagnon:ok_parfait',
];
return _T($alea[array_rand($alea)]);
}