You are here

function _ldapdata_retrieve_profile_fields in LDAP integration 5

Same name and namespace in other branches
  1. 5.2 ldapdata.module \_ldapdata_retrieve_profile_fields()
  2. 6 ldapdata.module \_ldapdata_retrieve_profile_fields()
3 calls to _ldapdata_retrieve_profile_fields()
ldapdata_admin_edit in ./ldapdata.module
ldapdata_user_profile_load in ./ldapdata.module
ldapdata_user_update_profile in ./ldapdata.module

File

./ldapdata.module, line 756

Code

function _ldapdata_retrieve_profile_fields() {
  $sql = 'SELECT * FROM {profile_fields}';
  $result = db_query($sql);
  $fields = array();
  while ($row = db_fetch_object($result)) {
    $fields[$row->fid] = $row->name;
  }
  return $fields;
}