dolibarr 21.0.0-alpha
socialnetwork.lib.php
1<?php
28function socialnetwork_prepare_head()
29{
30 global $langs, $conf;
31
32 $h = 0;
33 $head = array();
34
35 $head[$h][0] = DOL_URL_ROOT.'/admin/dict.php?id=38&from=socialnetworksetup';
36 $head[$h][1] = $langs->trans("Dictionary").' - '.$langs->trans("SocialNetworks");
37 $head[$h][2] = 'dict';
38 $h++;
39
40 $head[$h][0] = DOL_URL_ROOT.'/admin/fediverse.php';
41 $head[$h][1] = $langs->trans("Fediverse");
42 $head[$h][2] = 'divers';
43 $h++;
44
45 complete_head_from_modules($conf, $langs, null, $head, $h, 'socialnetwork', 'add', 'external');
46 complete_head_from_modules($conf, $langs, null, $head, $h, 'socialnetwork', 'remove');
47 return $head;
48}
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).