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.
This HowTo shows, how you can export and import the structure of a profile2-type to transfer the structure of a profile2-type from one website to another.
HowTo:
Step 1: At your source website
- If not enabled, (download, install to your modules-path like
sites/all/modules
and) enable the module Features (http://drupal.org/project/features). - Visit '
http://example.com/admin/structure/features/create
', edit the fields, set "Edit components" to "Profile type: profile2_typ", check you profile2-type and then click on "Download feature" to download it as a new module.
Step 2: At your target website
- If not enabled, (download, install to your modules-path like
sites/all/modules
and) enable the modules Profile2 (http://drupal.org/project/profile2) and Entity API (http://drupal.org/project/entity). - Install to your modules-path like
sites/all/modules
and enable the exported module from the step 1 - Visit '
http://example.com/admin/people/permissions
' and set the permissions for the profile2-type. - The profile2-type from your source website is now ready to use.
If necessary: Change the profile2-type on your source website and export and import it again.
Good luck!