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.
I have this code
global $user;
$uid = $user->uid;
if ($uid > 0) {
include_once drupal_get_path('module', 'user') . '/user.pages.inc';
print(drupal_get_form('user_profile_form', $user));
}
which prints the whole user/%/edit form.
Now im trying to just print certain parts, such as upload picture, so I try to inlude edit-picture-upload, somewhere into the code, but it doesnt do what im trying to do.
Can I do this and how?
Thanks for any advice.
Comments
Comment #1
agile CreditAttribution: agile commentedI too have the same..
Comment #2
fildawg CreditAttribution: fildawg commentedAdd $category. For example, if my category is Address: