"Overriding" activities print_overview

"Overriding" activities print_overview

by No name -
Number of replies: 0

Hi,

I'm trying to change the way the course_overview block shows the information in my home page (Moodle 2.7.2). I need to display the content of # lasts posts of each forum using this block.

I'm overriding the block_course_overview's renderer. 

class theme_mytheme_block_course_overview_renderer extends block_course_overview_renderer {

That's working, as expected but I cannont change the activity overview to reach my goal because block gets the info from each activity module. In the forum example, it uses this function:

function forum_print_overview($courses,&$htmlarray) {
[...]
}

Is there any way to override this function from my theme's code? Which is the best way to do this without modifying activity code?

Thank you in advance and sorry for my bad English.

Average of ratings: -