30 lines
609 B
PHP
30 lines
609 B
PHP
<?php
|
|
/**
|
|
* Options au chargement du plugin GamuTable
|
|
*
|
|
* @plugin GamuTable
|
|
* @copyright 2020
|
|
* @author tofulm
|
|
* @licence GNU/GPL
|
|
* @package SPIP\Gamutable\Options
|
|
*/
|
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
|
return;
|
|
}
|
|
|
|
|
|
if (_request('var_mode') == 'gamutable') {
|
|
include_spip('inc/invalideur');
|
|
suivre_invalideur("id='gamutable/1'");
|
|
}
|
|
|
|
|
|
function gamutable_formulaire_admin($flux) {
|
|
//if (autoriser('configurer', 'scssphp')) {
|
|
//}
|
|
$btn = recuperer_fond('inclure/calculer_gamutable');
|
|
$flux['data'] = preg_replace('%(<!--extra-->)%is', $btn.'$1', $flux['data']);
|
|
|
|
return $flux;
|
|
}
|