You are here

function ldapdata_attribute_filter in LDAP integration 5

Same name and namespace in other branches
  1. 5.2 ldap_integration/ldapdata.conf.php \ldapdata_attribute_filter()
1 string reference to 'ldapdata_attribute_filter'
ldapdata.module in ./ldapdata.module

File

ldap_integration/ldapdata.conf.php, line 5

Code

function ldapdata_attribute_filter(&$attributes) {

  // Uncomment this line to see what you receive as argument

  //msg_r($attributes);

  // Example:
  //     Say the attrribute emailAddress is stored like
  //   whatever#jdoe@example.com . You obviously will want
  //   Drupal to have it as jdoe@example.com, so you do this:

  //$attributes['emailAddress'][0] = preg_replace('/[^#]+#([^#])/', '$1', $attributes['emailAddress'][0]);
  return $attributes;
}