Where's the main front page "Turn editing on" code?

Where's the main front page "Turn editing on" code?

by John Anderson -
Number of replies: 4

Hi, working on a theme here and trying to find where the <form> code is that creates the main "Turn editing on" button. Could Martin or someone could point me in the direction?

Thanks

John A

Average of ratings: -
In reply to John Anderson

Re: Where's the main front page "Turn editing on" code?

by Bryce Thornton -
Look in lib/weblib.php for a function called update_course_icon().  It's around line 2937.
In reply to Bryce Thornton

Re: Where's the main front page "Turn editing on" code?

by John Anderson -

Thanks Bryce,

I'm looking, but have no weblib.php in my /lib/ directory. I'm using 1.4.4, could that be a difference?

John

In reply to John Anderson

Re: Where's the main front page "Turn editing on" code?

by Bryce Thornton -
Yes, that probably makes a difference.  I've been using 1.5 development versions for a while now.  I'm not sure where to find it in 1.4.4.  Sorry.
In reply to John Anderson

Re: Where's the main front page "Turn editing on" code?

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
Same name, same place in 1.4.  Moodle will not run without it so if your site is working then it must be there.

Just to check the obvious, you are looking in:
/path_to_moodle_installation/lib/ ($CFG->dirroot/lib)