dolibarr 24.0.0-beta
api.lib.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
4 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 * or see https://www.gnu.org/
19 */
20
33{
34 global $langs;
35
36 $h = 0;
37 $head = array();
38
39 $head[$h][0] = DOL_URL_ROOT.'/api/admin/index.php';
40 $head[$h][1] = $langs->trans("Parameter");
41 $head[$h][2] = 'parameter';
42 $h++;
43
44 if (getDolGlobalString('API_IN_TOKEN_TABLE')) {
45 $head[$h][0] = DOL_URL_ROOT.'/api/admin/token_list.php';
46 $head[$h][1] = $langs->trans("ListOfTokens");
47 $head[$h][2] = 'token_list';
48 $h++;
49 }
50
51 return $head;
52}
api_admin_prepare_head()
Return array head with list of tabs to view object information.
Definition api.lib.php:32
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.