From 651b1e1d3ad76713c2cae83369e4a34c4bef79d8 Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Sat, 21 May 2016 02:45:46 +0200 Subject: [PATCH] Hook for adding new email templates on list --- htdocs/admin/dict.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 7045695c1c2..353389c98a8 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -551,6 +551,14 @@ if ($id == 25) if ($conf->fournisseur->enabled) $elementList['order_supplier_send']=$langs->trans('MailToSendSupplierOrder'); if ($conf->fournisseur->enabled) $elementList['invoice_supplier_send']=$langs->trans('MailToSendSupplierInvoice'); if ($conf->societe->enabled) $elementList['thirdparty']=$langs->trans('MailToThirdparty'); + + $parameters=array('elementList'=>$elementList); + $reshook=$hookmanager->executeHooks('emailElementlist',$parameters); // Note that $action and $object may have been modified by some hooks + if ($reshook == 0) { + foreach ($hookmanager->resArray as $item => $value) { + $elementList[$item] = $value; + } + } } // Define localtax_typeList (used for dictionary "llx_c_tva")