You are here

function pcp_get_profile_fields in Profile Complete Percent 5

Same name and namespace in other branches
  1. 6.2 pcp.module \pcp_get_profile_fields()
  2. 6 pcp.module \pcp_get_profile_fields()
  3. 7 pcp.module \pcp_get_profile_fields()

Get all the profile fields stored in the system, tagged or not tagged.

1 call to pcp_get_profile_fields()
pcp_admin_settings_form_data in ./pcp.module
Function that sets up parameters to be used when the pcp_admin_settings_form() function is executed.

File

./pcp.module, line 284
Allows users with valid permissions to tag profile fields created from the profile module as required fields for a users profile to be considered complete.

Code

function pcp_get_profile_fields() {
  $query = db_query("SELECT * FROM {profile_fields}");
  $fields = array();
  while ($result = db_fetch_array($query)) {
    $fields[] = $result;
  }
  return $fields;
}