function _profile2_regpath_user_register in Profile2 Registration Path 7.2
Same name and namespace in other branches
- 7 registration_form.inc \_profile2_regpath_user_register()
Page callback: Displays a user registration form.
Path: [path-setting]/register
Parameters
object object $regpath: 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
- ./
profile2_regpath.inc, line 112 - Modifications to the user registration form.
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;
}