where is $menu variable in header loaded from

where is $menu variable in header loaded from

by Edward follett -
Number of replies: 4

Hey all,

Just trying to work out what file contains the data that is loaded in variable $menu in the header? so where is the drop down menu with the languages stored. Is it loaded from the database or a specifc file. If so where?

Can someone help me please!

ed

Average of ratings: -
In reply to Edward follett

Re: where is $menu variable in header loaded from

by Mauno Korpelainen -

If you really need to know (in moodle 1.7):
Defined at:
/course/report/stats/index.php -> line 55
/lib/weblib.php -> line 2041
/lib/weblib.php -> line 2118
/lib/weblib.php -> line 2120
/lib/weblib.php -> line 2268
/lib/weblib.php -> line 2325
/lib/weblib.php -> line 2343
/lib/weblib.php -> line 4071
/lib/weblib.php -> line 4193
/course/report/stats/lib.php -> line 28
/course/report/stats/lib.php -> line 30
/mod/forum/search.php -> line 390

In reply to Mauno Korpelainen

Re: where is $menu variable in header loaded from

by Edward follett -

thanks for getting back to me!

Sadly im not infront of my setup here so i was wondering if you could clarify somehting!

When it is defined! is it loaded from a file or the database!

im looking to add different things / move it around for the menu area!

cheers

In reply to Edward follett

Re: where is $menu variable in header loaded from

by Mauno Korpelainen -

That variable $menu is a lot more complicated thing than it seems to be. In theme it is located to header in header.html, but you may move that <?php echo $menu ?> to different place if you like (some block, footer, index.php for example). <div class="headermenu"> defines the css for div around $menu and you may change css starting with .headermenu

Does this help?

In reply to Mauno Korpelainen

Re: where is $menu variable in header loaded from

by Edward follett -
hi thanks for your reply!

i understadn what your trying to say so thanks but i am trying to understand where the data stored in $menu comes from? does that make sense?

so all the drop down with all the languages has to be stored somewhere. i appreciate the languages come from the installed languages packs so thats not the prob but where did the actual rop edown code come from....

basically i want to edit that drop down and add additional items like the word "language" next to the drop down etc!

any ideas?

cheers

ed