mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
Add info for opt out email
This commit is contained in:
@@ -11328,6 +11328,12 @@ function getElementProperties($element_type)
|
||||
$classpath = 'contrat/class';
|
||||
$module = 'contrat';
|
||||
$subelement = 'contrat';
|
||||
} elseif ($element_type == 'mailing') {
|
||||
$classpath = 'comm/mailing/class';
|
||||
$module = 'mailing';
|
||||
$classfile = 'mailing';
|
||||
$classname = 'Mailing';
|
||||
$subelement = '';
|
||||
} elseif ($element_type == 'member') {
|
||||
$classpath = 'adherents/class';
|
||||
$module = 'adherent';
|
||||
@@ -11424,7 +11430,6 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '')
|
||||
$ret = 0;
|
||||
|
||||
$element_prop = getElementProperties($element_type);
|
||||
//var_dump($element_prop);
|
||||
|
||||
if (is_array($element_prop) && isModEnabled($element_prop['module'])) {
|
||||
dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');
|
||||
|
||||
Reference in New Issue
Block a user