Skip to content

Tag: moodle

Moodle custom fields API for course page

Unfortunately I can’t quite follow how the custom field API works. What I actually want are additional fields for the custom course format such as address, directions and other (hybrid courses). And no, I don’t want to use the web interface for this. As I understand it, two files are needed, myFor…

How can I make a page accessible to only admins in moodle?

I have a link on the settings.php page of my activity module that goes to a clear.php page that truncates a table in the database. As it stands even guests can still run this function by going to the clear.php themselves by typing in the address bar. Is there a way to check if a USER is an admin or

how to pass the selected option as value in moodle select

i want to pass the options as values : here is my code. If i use this means it is looking like below : what i want is the exact value will be pass in to the option values. how to get that Answer You can simplify this with the get records menu functions. https://docs.moodle.org/dev/Data_manipulation_API#get_re…

OpenID connect plugin uninstall button is disappeared

I have installed the openID connect the plugin to connect Azure AD in my moodle site. Now I want to uninstall the plugin. But uninstall button is not appearing. I have already checked all dependencies and removed them. But still, uninstall is not there. real environment example Answer Can you check if any use…

Moodle Events API

I’m trying to develop a plugin for Moodle, using Events API that will send out emails when new blog post is created. I created my plugin with the following structure: blog_observer/ ├── classes │ └──…

Moodle email templates

I am working on a Learning Management System build upon Moodle. I want to add an email header and footer for each email. I did some change in Moodle for adding an image in ./lib/moodlelib.php as follows: but I want the header and footer as fixed templates. Please help me. Answer You could create a message hea…