From: Christian Weiske Date: Tue, 1 Oct 2013 05:34:03 +0000 (+0200) Subject: allow custom field definitions in config.php X-Git-Tag: 0.8.0~6^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75245bbc807b67247234c9103b162008c5b5b326;p=contagged allow custom field definitions in config.php --- diff --git a/inc/config.php.dist b/inc/config.php.dist index f12635f..8ace7f5 100644 --- a/inc/config.php.dist +++ b/inc/config.php.dist @@ -76,3 +76,6 @@ $conf['oclasses'] = array( //'evolutionPerson', //'officePerson', ); + +//custom LDAP field mappings, see inc/fields.php +$conf['customFields'] = array(); diff --git a/inc/fields.php b/inc/fields.php index 9d09743..25e0508 100644 --- a/inc/fields.php +++ b/inc/fields.php @@ -87,6 +87,9 @@ if (array_search('evolutionPerson', $conf['oclasses']) !== false) { $FIELDS['_marker'] = 'categories'; // aka. tags } +// add custom fields from config +$FIELDS = array_merge($FIELDS, $conf['customFields']); + /** * Flip the array */