Ariyan
Ariyan

Reputation: 15158

display user profile as part of my plugin page in moodle

I'm creating a moodle local plugin and I need to display the current user's profile page as part of my page and add my data after that.
is there any API that give me the profile page (with all additional fields) so I will be able to show it in my page?

Upvotes: 0

Views: 118

Answers (1)

Priye Ranjan
Priye Ranjan

Reputation: 442

You can use global variable $USER. You will find all the records of current logged in user in $USER and display according to your requirement.

Upvotes: 1

Related Questions