Quantcast
Viewing all articles
Browse latest Browse all 9625

Re: Change assignment icon in course view after submission

by Michael Zehr.  

Thanks for the response.  I'm afraid I must be missing something fundamental here though....

Found the code, can't seem to get any change to display through the brower though.  I even hardcoded a the name in the cached_cm_info to return, and in case it mattered purged the cache, but the display result is the same.

I even went back to course/lib.php in get_array_of_activities and added:

$mod[$seq]->name = "my name";
$mod[$seq]->content = "my content";

expecting every activity in the course to have those hardcoded names and... nothing.  Everything looks exactly the same.

This code all seems to be upstream from the cache, i.e. it's called by lib/modinfolib.php rebuild_course_cache.  Again, purged the cache to make sure I was getting the changes, and if I put a syntax error in mod/resource/lib.php the page wasn't displayed, so I'm pretty sure I was changing code in the correct place.

It seems like something (possibly the theme) is changing the display/format of the cached_cm_info when it's pulling it from the cache in the DB and displaying it, but I haven't been able to identify where that is.

Again, thanks for any help.. I feel like I'm missing something simple and obvious, but it's lead me down the wrong path.

 


Viewing all articles
Browse latest Browse all 9625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>