Posted By

dividespace on 09/17/09


Tagged

drupal drupaluserprofile


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jmiller
panatlantica


How to print the user profile form anywhere? (D6) | drupal.org


 / Published in: PHP
 

URL: http://drupal.org/node/368048

  1. <?php
  2. global $user;
  3. $uid = $user->uid;
  4. if ($uid > 0) {
  5. include_once drupal_get_path('module', 'user') . '/user.pages.inc';
  6. print(drupal_get_form('user_profile_form', $user));
  7. }
  8. else {
  9. // do something else
  10. }
  11. ?>

Report this snippet  

You need to login to post a comment.