You are here

function _ldapdata_retrieve_standard_user_fields in LDAP integration 5.2

Same name and namespace in other branches
  1. 5 ldapdata.module \_ldapdata_retrieve_standard_user_fields()
  2. 6 ldapdata.module \_ldapdata_retrieve_standard_user_fields()
1 call to _ldapdata_retrieve_standard_user_fields()
ldapdata_admin_edit in ./ldapdata.module

File

./ldapdata.module, line 767

Code

function _ldapdata_retrieve_standard_user_fields() {

  // pablom -
  //    This commented code below would return all possible values,
  //  but maybe that's not appropriate.
  //
  //   $result = db_query('SHOW COLUMNS FROM {users}');
  //
  //   $fields = array();
  //   while ($row = db_fetch_object($result)) {
  //     $fields[] = $row->Field;
  //   }
  //    Rather, I'll use my benevolent dictator powers
  //  to return only sensible ones
  $fields['mail'] = 'mail';
  $fields['pass'] = 'pass';
  $fields['signature'] = 'signature';
  return $fields;
}