function _profile2_regpath_user_register in Profile2 Registration Path 7
Same name and namespace in other branches
- 7.2 profile2_regpath.inc \_profile2_regpath_user_register()
Page callback: Displays a user registration form.
Path: [path-setting]/register
Parameters
object object $profiles: Object containing single row from profile2_regpath_get_profiles() database result.
See also
2 string references to '_profile2_regpath_user_register'
- profile2_regpath_menu in ./
profile2_regpath.module - Implements hook_menu().
- profile2_regpath_menu_alter in ./
profile2_regpath.module - Implements hook_menu_alter().
File
- ./
registration_form.inc, line 37 - Builds profile-specific register, login, and password forms.
Code
function _profile2_regpath_user_register($regpath) {
module_load_include('pages.inc', 'user', 'user');
$output = drupal_get_form('user_register_form');
_profile2_regpath_set_title($regpath, 'register_title');
return $output;
}