Add url resource with script

Add url resource with script

by Danilo CRECCHIA -
Number of replies: 0

Hello everybody,

i am new to the moodle world. I need to create a script that associates a url resource with each course.
From a research done it seems to me that there are no APIs to do this.

Taking a look at the DB it seems that when you add a url resource from the interface the tables are populated:

- mdl_course_modules

- mdl_url

Just to add, via scripts, records in these tables or is there something that escapes me?

Thank you!

Average of ratings: -