How to customize the code

How to customize the code

by Kranthi Kiran -
Number of replies: 1
Hi i am using moodle and i am new to this due to some requirement by my client we have customize the code.
Actually when i loged in as teacher and i want to create a workshop or Lessons or Forums. We got some bugs by clients i.e When we give "To" date less that the "From" date and save changes it is not showing any error while creating a forum and Lessons.
In Workshop if don't give any name and message in text area it is not showing any error.
So, is there any setting changes to do or we have to change in code.
Can any one please help me in this issue that what to do in settings to work this or how to change in code and in which file i can find this one and how to do.

Thanks and regards
Kranthi
Average of ratings: -
In reply to Kranthi Kiran

Re: How to customize the code

by David Monllaó -
Hi Kranthi

You must change the code, when you add or edit a module instance course/mod.php script opens the file mod/modulename/mod.html of the selected module.

You can add javascript functions in inputs or submits to inform after send the form; and/or you can modify mod/modulename/lib.php add_instance/update_instance functions to check variables values.