Hey guys,
I'm trying to return the value of coursemodule id but i'm not having success...
<?php
require_once('config.php');
global $COURSE;
echo $COURSE->id;
?>
I don't have experience with moodle scripting but, i manage to have access to the COURSE with the code above, so i've tried many different ways to do the same with coursemodule id but no success. Someone can help?