Embedding a view in user edit form How can I embed a view inside a user edit form depending on that user's role. I have used the Context module but it does not have the right conditions.

At the moment is uses the (user page -> User account form) condition. I cannot use the User role condition because it is for the currently logged in user.
You can use hook_form_alter and views_embed_view to alter the form and add the markup for a view.