I am trying to embed current user edit form in block. Actually I want just to embed some of the newly added fields. I tried to follow this code:
Embed some user profile fields in a block form
But I failed to find the "category", and code does not produce any output except of "save" button.
EDIT: Provided possible solution does not work for me. It does not print custom fields by any means.
global $user; $block['content'] = drupal_get_form('user_profile_form', $user); module_load_include('inc', 'user', 'user.pages');
instead of the code mentioned incustom_block_view
in the answer.