Forums | Mahara Community

Support /
Overriding functions in my theme


anonymous profile picture
Account deleted
Posts: 2

12 November 2010, 4:42

Hi

I've a need to override the standard str_shorten_html function which is found in lib/web.php (my client wants to change the way the listing is handled for the groups listing).

Is it possible to declare my own version of this function within my theme, and if so how? I've scoured the forum and Googled extensively, but have yet to come up with an answer to this. Any advice welcome!

Many thanks,

Paul

François Marier's profile picture
Posts: 411

14 November 2010, 15:29

Unfortunately this is one of the cases where you have to customise the PHP code directly.

Cheers,

Francois

2 results