Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created multiple profiles, each with it's own registration path (like "profile_name/register"). "Show on all user account registration forms" is unchecked for all profiles.
My problem is that the "profile_name/register" path works well, but the admin path "admin/people/p2rp-create/profile_name" is the same as the default "admin/people/create".
It seems that the specific profile fields are not loaded on the page. Even the role is not correctly assigned.
Any help would be appreciated.
Thanks!
Comments
Comment #1
george.plescan CreditAttribution: george.plescan commentedI found the problem in the module file.
At line 179 the module grabs the path key (aka the profile name). On non admin pages the path key is at the beginning of the URL. But for admin pages it is at the end (for ex. admin/people/p2rp-create/stagiaire).
This is my code :