diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index 60b90a9cf312912d8cd110e0c820a3f255b7360c..ca7706989e01383b2cfee8369825c259d335ce7e 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -108,7 +108,7 @@ if ($rowid) } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('membercard')); +$hookmanager->initHooks(array('membercard','globalcard')); /* diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index d9b04e3c506c14051db7522762563f734d913a66..0ffdc8b7e7f6e55952298d2b1cebf3121b5eb621 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -70,7 +70,7 @@ if (GETPOST('button_removefilter')) // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('membertypecard')); +$hookmanager->initHooks(array('membertypecard','globalcard')); /* * Actions diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index d1fe784856405191d9c96f64059c75a0c61da211..52e352779baa2840e4a08c48cd9588e0dc38c524 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -93,7 +93,7 @@ if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user,$objecttype,$objectid,$dbtablename,'','',$fieldid); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('categorycard')); +$hookmanager->initHooks(array('categorycard','globalcard')); /* diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 5f663d076ec38d4ed6f0bf374f39997f8c7399bb..e4c0fe78aa97b52cf7211a7fc81faf3b53778499 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -81,7 +81,7 @@ $extralabels=$extrafields->fetch_name_optionals_label($object->table_element); //var_dump($_POST); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('actioncard')); +$hookmanager->initHooks(array('actioncard','globalcard')); /* diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index f1d27b791e6932d8d4d8c006bc45e69b56db669d..d0dd842cd7c75f9a2bb2514bf62ca6c665412ed2 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -68,7 +68,7 @@ if (! $sortorder) $sortorder="ASC"; if (! $sortfield) $sortfield="nom"; // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('commcard')); +$hookmanager->initHooks(array('commcard','globalcard')); $object = new Societe($db); diff --git a/htdocs/comm/mailing/card.php b/htdocs/comm/mailing/card.php index efff271a08c326353b8eea4420bac80a0e91c032..678ea8f622deb4d7328faf49b09d7260ec22e953 100644 --- a/htdocs/comm/mailing/card.php +++ b/htdocs/comm/mailing/card.php @@ -52,7 +52,7 @@ $extrafields = new ExtraFields($db); $extralabels=$extrafields->fetch_name_optionals_label($object->table_element); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('mailingcard')); +$hookmanager->initHooks(array('mailingcard','globalcard')); // Array of possible substitutions (See also file mailing-send.php that should manage same substitutions) $object->substitutionarray=array( diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 19be47d5b5f40a45b897af870dfcc67db5b067b2..34adf5d5f6805d8ff2b7f919af6339d365813e3b 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -96,7 +96,7 @@ if ($id > 0 || ! empty($ref)) { } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('propalcard')); +$hookmanager->initHooks(array('propalcard','globalcard')); $permissionnote = $user->rights->propale->creer; // Used by the include of actions_setnotes.inc.php diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 6c8c54791bf7ca909c6b5c3122581ce981efa3b0..92fed5968191871dfea27594a570df4c246446b7 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -90,7 +90,7 @@ if ($id > 0 || ! empty($ref)) { } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('ordercard')); +$hookmanager->initHooks(array('ordercard','globalcard')); $permissionnote = $user->rights->commande->creer; // Used by the include of actions_setnotes.inc.php diff --git a/htdocs/compta/deplacement/card.php b/htdocs/compta/deplacement/card.php index 80d1858d1679a4e9ca34137a7c6665f89912b81b..20433118bbf2c842e961dfb5386c2e7218e0fbf2 100644 --- a/htdocs/compta/deplacement/card.php +++ b/htdocs/compta/deplacement/card.php @@ -47,7 +47,7 @@ $confirm = GETPOST('confirm','alpha'); $object = new Deplacement($db); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('tripsandexpensescard')); +$hookmanager->initHooks(array('tripsandexpensescard','globalcard')); $permissionnote=$user->rights->deplacement->creer; // Used by the include of actions_setnotes.inc.php diff --git a/htdocs/compta/dons/card.php b/htdocs/compta/dons/card.php index a9c8a42448b0a2d9dfe3855a074c9252052551e3..e453ef623c3244b5e7dd026fecd057756355f0c4 100644 --- a/htdocs/compta/dons/card.php +++ b/htdocs/compta/dons/card.php @@ -50,7 +50,7 @@ $donation_date=dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOS $result = restrictedArea($user, 'don', $id); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('doncard')); +$hookmanager->initHooks(array('doncard','globalcard')); /* diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index f41ac9ef4e519d01d5e588012c821693a56f3831..a358598264e9bc81083b8afee6c4ad59ba79ba55 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -101,7 +101,7 @@ if ($id > 0 || ! empty($ref)) { } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('invoicecard')); +$hookmanager->initHooks(array('invoicecard','globalcard')); $permissionnote = $user->rights->facture->creer; // Used by the include of actions_setnotes.inc.php diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index c7af3458fcb3a83e02ed3c8a678e5d9a5ce48dbb..21b2eb9e15496b149b2eddacf5d7b50af69d3b73 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -67,7 +67,7 @@ if ($facid > 0) } // Initialize technical object to manage hooks of paiements. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('paiementcard')); +$hookmanager->initHooks(array('paiementcard','globalcard')); $parameters=array('socid'=>$socid); $reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks diff --git a/htdocs/compta/salaries/card.php b/htdocs/compta/salaries/card.php index 2cef32b136efa7ab3a19b7c61eb9de8a7b81722c..3ee796c61346228e47ce82a9a02aa96cb83cc9b7 100644 --- a/htdocs/compta/salaries/card.php +++ b/htdocs/compta/salaries/card.php @@ -44,7 +44,7 @@ $result = restrictedArea($user, 'salaries', '', '', ''); $sal = new PaymentSalary($db); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('salarycard')); +$hookmanager->initHooks(array('salarycard','globalcard')); diff --git a/htdocs/compta/tva/card.php b/htdocs/compta/tva/card.php index c87530e65110ebebafd0f315f122b0032617d78b..268a1af8e6616cb9ff4fa26d0673f95f32b99e68 100644 --- a/htdocs/compta/tva/card.php +++ b/htdocs/compta/tva/card.php @@ -42,7 +42,7 @@ $result = restrictedArea($user, 'tax', '', '', 'charges'); $tva = new Tva($db); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('taxvatcard')); +$hookmanager->initHooks(array('taxvatcard','globalcard')); diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index 2df9986dba0d17d9dac322e84a9b07a3e1632885..f3abf9e2bfe6ccd736768003de90677614400ab4 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -74,7 +74,7 @@ if (! empty($canvas)) $result = restrictedArea($user, 'contact', $id, 'socpeople&societe', '', '', 'rowid', $objcanvas); // If we create a contact with no company (shared contacts), no check on write permission // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('contactcard')); +$hookmanager->initHooks(array('contactcard','globalcard')); /* diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 8dbf4d35fa45ddf5476240bcf2577a4e8a5c79c9..1b47912fa41ac87341af7e0756ce46b471a21d92 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -66,7 +66,7 @@ $result=restrictedArea($user,'contrat',$id); $usehm=(! empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE)?$conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE:0); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('contractcard')); +$hookmanager->initHooks(array('contractcard','globalcard')); $object = new Contrat($db); $extrafields = new ExtraFields($db); diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index e9083b77e2133a7d2c7530a6d3075533238fedac..c2649e5f8df85a7b41460089a3e143e8b5cc3a65 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -82,7 +82,7 @@ if ($id > 0 || ! empty($ref)) } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('expeditioncard')); +$hookmanager->initHooks(array('expeditioncard','globalcard')); /* * Actions diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index 1cf9ce563ed0c3b872dbe6c3792dc7f9c08c15b0..70d425d04a119bf80d82aeb3f1378542db111ee5 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -77,7 +77,7 @@ if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'ficheinter', $id, 'fichinter'); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('interventioncard')); +$hookmanager->initHooks(array('interventioncard','globalcard')); $object = new Fichinter($db); $extrafields = new ExtraFields($db); diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php index 840151b600183a10e515338dde74794af7df3f5a..9bbc27ca51cd0155913c687dda95fedd9ed0f12f 100644 --- a/htdocs/fourn/card.php +++ b/htdocs/fourn/card.php @@ -50,7 +50,7 @@ $result = restrictedArea($user, 'societe&fournisseur', $id, '&societe'); $object = new Fournisseur($db); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('suppliercard')); +$hookmanager->initHooks(array('suppliercard','globalcard')); /* * Action diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 1c699b21711688504240f7a8a10717b356b5818c..d6be5491f542ad29546928b6aa0fa544ac8e8b4e 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -72,7 +72,7 @@ if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'fournisseur', $id, '', 'commande'); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('ordersuppliercard')); +$hookmanager->initHooks(array('ordersuppliercard','globalcard')); $object = new CommandeFournisseur($db); $extrafields = new ExtraFields($db); diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index c9926cd59dd854ceaadddc6d2f00fbe6219c47c3..b58c17dcf6297bd016cb6a5613ce12ca643911e8 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -69,7 +69,7 @@ if (! empty($user->societe_id)) $socid=$user->societe_id; $result = restrictedArea($user, 'fournisseur', $id, 'facture_fourn', 'facture'); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('invoicesuppliercard')); +$hookmanager->initHooks(array('invoicesuppliercard','globalcard')); $object=new FactureFournisseur($db); diff --git a/htdocs/livraison/card.php b/htdocs/livraison/card.php index 772ab34c291a67f0bc570e21da706b98d8571626..98f08803af4746b907f261b7f28d887047cccf8f 100644 --- a/htdocs/livraison/card.php +++ b/htdocs/livraison/card.php @@ -65,7 +65,7 @@ if ($id > 0 || ! empty($ref)) { } // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('deliverycard')); +$hookmanager->initHooks(array('deliverycard','globalcard')); /* * Actions diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 856d4a477fb3d1303603790f8e7c0632f2f4dcf1..a9f533ba40b4da4b90f7d687c7ed1e0e880f51dd 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -88,7 +88,7 @@ $fieldtype = (! empty($ref) ? 'ref' : 'rowid'); $result=restrictedArea($user,'produit|service',$fieldvalue,'product&product','','',$fieldtype,$objcanvas); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('productcard')); +$hookmanager->initHooks(array('productcard','globalcard')); diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 8720c9cf8926a82b570d402d0ab9923e2bfda11e..9832e57eb6d06e287471cb8013223dfc5e219913 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -60,7 +60,7 @@ if ($user->societe_id) $socid=$user->societe_id; $result=restrictedArea($user,'produit|service&fournisseur',$fieldvalue,'product&product','','',$fieldtype); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('pricesuppliercard')); +$hookmanager->initHooks(array('pricesuppliercard','globalcard')); $product = new ProductFournisseur($db); $product->fetch($id,$ref); diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index b95fe58d752e3beff835c518c07fcd4f722607fb..051a0575aaa1e88451b6dcee011581d7c3f4208b 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -49,7 +49,7 @@ if (! $sortorder) $sortorder="DESC"; $result=restrictedArea($user,'stock'); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('warehousecard')); +$hookmanager->initHooks(array('warehousecard','globalcard')); /* diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 273784faf9245b146127f1d850fb503476eea220..df67d9d8fa16abd4c5043f2d8f7b4bebf79edc6d 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -45,7 +45,7 @@ $mine = GETPOST('mode')=='mine' ? 1 : 0; //if (! $user->rights->projet->all->lire) $mine=1; // Special for projects // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('projectcard')); +$hookmanager->initHooks(array('projectcard','globalcard')); $object = new Project($db); $extrafields = new ExtraFields($db); diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 6b5cc453cbf0f368093a90a44cb3c8dcc97920b0..d1d5092628e1f9af94c222459099d74c9bf83ad2 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -64,7 +64,7 @@ if ($user->societe_id > 0) $socid = $user->societe_id; $result = restrictedArea($user, 'projet', $id); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('projecttaskcard')); +$hookmanager->initHooks(array('projecttaskcard','globalcard')); $progress=GETPOST('progress', 'int'); $label=GETPOST('label', 'alpha'); diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php index c8f60cde7a11694e34e58a8fe2b6234d99b41e9f..8e5b664759ecdd36799bb4a7d98733829cb7a2c9 100644 --- a/htdocs/projet/tasks/task.php +++ b/htdocs/projet/tasks/task.php @@ -50,7 +50,7 @@ if ($user->societe_id > 0) $socid = $user->societe_id; if (! $user->rights->projet->lire) accessforbidden(); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('projecttaskcard')); +$hookmanager->initHooks(array('projecttaskcard','globalcard')); $object = new Task($db); $extrafields = new ExtraFields($db); diff --git a/htdocs/resource/card.php b/htdocs/resource/card.php index ed48f7e1b04298e19f4e7827b618f6702167bc6c..b2ee3ae181477f2880a99db972bf6a77570d850f 100755 --- a/htdocs/resource/card.php +++ b/htdocs/resource/card.php @@ -57,7 +57,7 @@ if( ! $user->rights->resource->read) $object = new Resource($db); -$hookmanager->initHooks(array('resource_card')); +$hookmanager->initHooks(array('resource_card','globalcard')); $parameters=array('resource_id'=>$id); $reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); diff --git a/htdocs/societe/commerciaux.php b/htdocs/societe/commerciaux.php index 5436e03274bff1d57efd80fe3e5537699a0f70c1..498257ea49610c78de8af26a242cc03696380c60 100644 --- a/htdocs/societe/commerciaux.php +++ b/htdocs/societe/commerciaux.php @@ -37,7 +37,7 @@ $socid = isset($_GET["socid"])?$_GET["socid"]:''; if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'societe','',''); -$hookmanager->initHooks(array('salesrepresentativescard')); +$hookmanager->initHooks(array('salesrepresentativescard','globalcard')); /* * Actions diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index e45ce6eee7bdc9efab1924098758962cf915c480..c6909aa7cae7c5ab54be55b93d7fd84338d2e5d6 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -77,7 +77,7 @@ if (! empty($canvas)) $result = restrictedArea($user, 'societe', $socid, '&societe', '', 'fk_soc', 'rowid', $objcanvas); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('thirdpartycard')); +$hookmanager->initHooks(array('thirdpartycard','globalcard')); /* diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 996d7e7440d0e310faad5d89dedfa25d40f16075..01b6ec32f521c935d87c8f2cad880fc5396db098 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -89,7 +89,7 @@ $extrafields = new ExtraFields($db); $extralabels=$extrafields->fetch_name_optionals_label($object->table_element); // Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array -$hookmanager->initHooks(array('usercard')); +$hookmanager->initHooks(array('usercard','globalcard'));