You are here

function _cas_attributes_get_profile_fields in CAS Attributes 6.3

Retrieve profile fields.

2 calls to _cas_attributes_get_profile_fields()
cas_attributes_admin_settings in ./cas_attributes.admin.inc
Administrative settings form.
cas_attributes_cas_user_presave in ./cas_attributes.module
Implements hook_cas_user_presave().

File

./cas_attributes.module, line 178
Allows user account and profile attributes to be automatically populated using tokens. Provides basic tokens for attributes returned by the CAS server.

Code

function _cas_attributes_get_profile_fields() {
  $fields = array();
  if (module_exists('profile')) {
    $result = db_query("SELECT fid, name, title, type FROM {profile_fields}");
    while ($row = db_fetch_object($result)) {
      $fields[$row->fid] = $row;
    }
  }
  return $fields;
}