How to load user profile edit form drupal 7

If you are writing custom which requires to load user details certain way the following code snippets may help you
  module_load_include('pages.inc', 'user', 'user');
  global $user;
  $account = user_load($user->uid);
  $userdetails = drupal_render(drupal_get_form('user_profile_form', $account));

to began with it include the user modules which host all the user related functions, after that global variable user called to grab the current user id once we have both we can just load user details with built in function user_load along with drupal get form and drupal render. please use this code on your own discretion
Category: