Created
          April 7, 2013 08:19 
        
      - 
      
- 
        Save bdecarne/5329551 to your computer and use it in GitHub Desktop. 
    Drupal : Retrieve Profile2 Edit Form Programmatically
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| module_load_include('inc', 'profile2_page', 'profile2_page'); | |
| $profile2 = profile2_by_uid_load($user->uid, 'profile_id'); // profile_id = machine name | |
| $entity_form = entity_ui_get_form('profile2', $profile2, 'edit'); | |
| return $entity_form; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment