2018-10-06 02:51:47 +02:00
|
|
|
<?php
|
2024-11-04 23:53:20 +01:00
|
|
|
/* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
|
|
|
|
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
|
2024-11-04 12:32:13 +01:00
|
|
|
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
2018-10-06 02:51:47 +02:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2019-09-23 21:55:30 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2018-10-06 02:51:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
2019-02-24 14:30:02 +01:00
|
|
|
* \file htdocs/datapolicy/lib/datapolicy.lib.php
|
2018-10-15 14:04:42 +02:00
|
|
|
* \ingroup datapolicy
|
|
|
|
|
* \brief Library files with common functions for datapolicy
|
2018-10-06 02:51:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Prepare admin pages header
|
|
|
|
|
*
|
2024-11-04 12:32:13 +01:00
|
|
|
* @return array<array{0:string,1:string,2:string}>
|
2018-10-06 02:51:47 +02:00
|
|
|
*/
|
2018-10-15 14:04:42 +02:00
|
|
|
function datapolicyAdminPrepareHead()
|
2018-10-06 02:51:47 +02:00
|
|
|
{
|
2020-10-31 14:32:18 +01:00
|
|
|
global $langs, $conf;
|
2018-10-06 02:51:47 +02:00
|
|
|
|
2022-09-08 16:19:11 +02:00
|
|
|
$langs->load("datapolicy");
|
2018-10-06 02:51:47 +02:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
$h = 0;
|
|
|
|
|
$head = array();
|
2018-10-06 02:51:47 +02:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
$head[$h][0] = DOL_URL_ROOT."/datapolicy/admin/setup.php";
|
2024-12-30 11:43:38 +01:00
|
|
|
$head[$h][1] = $langs->trans("DataAnonymization");
|
2020-10-31 14:32:18 +01:00
|
|
|
$head[$h][2] = 'settings';
|
|
|
|
|
$h++;
|
2018-10-06 02:51:47 +02:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
complete_head_from_modules($conf, $langs, null, $head, $h, 'datapolicy');
|
2019-09-05 14:24:13 +02:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
complete_head_from_modules($conf, $langs, null, $head, $h, 'datapolicy', 'remove');
|
2018-10-06 02:51:47 +02:00
|
|
|
|
2020-10-31 14:32:18 +01:00
|
|
|
return $head;
|
2018-10-06 02:51:47 +02:00
|
|
|
}
|