function profile2_user_get_properties in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \profile2_user_get_properties()
Entity metadata callback to load profiles for the given user account.
1 string reference to 'profile2_user_get_properties'
- profile2_entity_property_info_alter in ./
profile2.info.inc - Implements hook_entity_property_info_alter().
File
- ./
profile2.module, line 1167 - Support for configurable user profiles.
Code
function profile2_user_get_properties($account, array $options, $name) {
// Remove the leading 'profile_' from the property name to get the type name.
$profile = profile2_load_by_user($account, substr($name, 8));
return $profile ? $profile : NULL;
}