You are here

function pcp_get_additional_tagged_fields in Profile Complete Percent 7

Same name and namespace in other branches
  1. 6.2 pcp.module \pcp_get_additional_tagged_fields()

Get all additional tagged fields that where not created using the profile module. This allows additional PCP support for other drupal features.

1 call to pcp_get_additional_tagged_fields()
pcp_get_complete_percentage_data in ./pcp.module
Get the profile complete percentage data for a given user.

File

./pcp.module, line 348
Allows users with valid permissions to tag profile fields (core fields or Profile2 fields) for a users profile to be considered complete.

Code

function pcp_get_additional_tagged_fields($uid, $entity_type, $bundle = NULL) {
  $fields = array();

  // Enable user picture support.
  if ($entity_type == 'user' && variable_get('pcp_enable_user_picture', 0)) {
    $fields['user_picture'] = 'user_picture';
  }
  return $fields;
}