You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
<?php |
|
|
|
/***************************************************************************\ |
|
* SPIP, Systeme de publication pour l'internet * |
|
* * |
|
* Copyright (c) 2001-2020 * |
|
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * |
|
* * |
|
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. * |
|
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
|
\***************************************************************************/ |
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) { |
|
return; |
|
} |
|
|
|
function formulaires_configurer_messagerie_agenda_charger_dist() { |
|
$valeurs = array(); |
|
foreach (array( |
|
'messagerie_agenda', |
|
) as $m) { |
|
$valeurs[$m] = $GLOBALS['meta'][$m]; |
|
} |
|
return $valeurs; |
|
} |
|
|
|
function formulaires_configurer_messagerie_agenda_traiter_dist() { |
|
$res = array('editable' => true); |
|
foreach (array( |
|
'messagerie_agenda', |
|
) as $m) { |
|
if (!is_null($v = _request($m))) { |
|
ecrire_meta($m, $v == 'oui' ? 'oui' : 'non'); |
|
} |
|
} |
|
|
|
$res['message_ok'] = _T('config_info_enregistree'); |
|
|
|
return $res; |
|
}
|
|
|