You are here

function _pcp_field_is_tagged in Profile Complete Percent 6.2

Check if a profile field is tagged as to be filled in. Returns TRUE or FALSE

1 call to _pcp_field_is_tagged()
pcp_form_profile_field_form_alter in ./pcp.module
Implementation of hook_form_FORM_ID_alter().

File

./pcp.module, line 653
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_field_is_tagged($fid) {
  $tag = TRUE;
  $field_data = pcp_get_tagged_profile_fields($fid);
  if (!$field_data[0]['fid']) {
    $tag = FALSE;
  }
  return $tag;
}