]> git.sur5r.net Git - contagged/commitdiff
allow custom field definitions in config.php
authorChristian Weiske <cweiske@cweiske.de>
Tue, 1 Oct 2013 05:34:03 +0000 (07:34 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 1 Oct 2013 05:38:55 +0000 (07:38 +0200)
inc/config.php.dist
inc/fields.php

index f12635f6b9e8675c514fd2d34022f3999bcae57a..8ace7f5114587605580200cbc61b7dbd069f8059 100644 (file)
@@ -76,3 +76,6 @@ $conf['oclasses'] = array(
     //'evolutionPerson',
     //'officePerson',
 );
+
+//custom LDAP field mappings, see inc/fields.php
+$conf['customFields'] = array();
index 9d097436a2a88aef28fe4c0246fe922761ef7766..25e05085be232fc0d4e70e03a7b528438ad54ab4 100644 (file)
@@ -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
  */