function profile2_regpath_get_profile_label in Profile2 Registration Path 7
Same name and namespace in other branches
- 7.2 profile2_regpath.module \profile2_regpath_get_profile_label()
Provides label by profile machine_name.
Parameters
string $profile_type: Machine-name of profile2 profile type.
Return value
string The label for indicated profile type.
2 calls to profile2_regpath_get_profile_label()
- profile2_regpath_attach_profile_fields in ./
profile2_regpath.inc - profile2_regpath_menu in ./
profile2_regpath.module - Implements hook_menu().
File
- ./
profile2_regpath.module, line 237 - Attach profile2 form to registration form according to path.
Code
function profile2_regpath_get_profile_label($profile_type) {
$profile_label = db_query("SELECT label FROM {profile_type} WHERE type = :profile_type", array(
':profile_type' => $profile_type,
))
->fetchField();
return $profile_label;
}