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


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.