dolibarr 21.0.0-alpha
socialnetwork.lib.php
1<?php
27function socialnetwork_prepare_head()
28{
29 global $langs, $conf;
30
31 $h = 0;
32 $head = array();
33
34 $head[$h][0] = DOL_URL_ROOT.'/admin/dict.php?id=38&from=socialnetworksetup';
35 $head[$h][1] = $langs->trans("Dictionary").' - '.$langs->trans("SocialNetworks");
36 $head[$h][2] = 'dict';
37 $h++;
38
39 $head[$h][0] = DOL_URL_ROOT.'/admin/fediverse.php';
40 $head[$h][1] = $langs->trans("Fediverse");
41 $head[$h][2] = 'divers';
42 $h++;
43
44 complete_head_from_modules($conf, $langs, null, $head, $h, 'socialnetwork', 'add', 'external');
45 complete_head_from_modules($conf, $langs, null, $head, $h, 'socialnetwork', 'remove');
46 return $head;
47}
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).