You are here

function bakery_get_profile_fields in Bakery Single Sign-On System 6.2

Gets data about profile fields regarldess of category and is public.

Return value

array keyed on field name with a value of the fid or empty if profile module is disabled.

1 call to bakery_get_profile_fields()
bakery_prepare_fields in ./bakery.module
Prepare fields for user_save().

File

./bakery.module, line 1295

Code

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